Skip to content

Commit

Permalink
fix: #1366 add type for daisyui plugin (#1469)
Browse files Browse the repository at this point in the history
* fix: #1366 add type for daisyui plugin

* fix: remove unused reference directive

* fix: remove tailwind-config.d.ts since config type augmentation is flaky
  • Loading branch information
soorria committed Feb 22, 2023
1 parent 24393be commit 1b39afb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@
"ui"
],
"main": "src/index.js",
"typings": "src/index.js",
"typings": "src/index.d.ts",
"types": "src/index.d.ts",
"files": [
"src/lib/**/*.js",
"dist/*.js",
"dist/{themes,styled,unstyled,full}.css",
"!dist/*.rtl.css",
"src/index.js",
"src/colors/*.js"
"src/colors/*.js",
"src/index.d.ts"
],
"browserslist": [
"> 7%"
Expand Down Expand Up @@ -113,4 +115,4 @@
"autoprefixer": "^10.0.2",
"postcss": "^8.1.6"
}
}
}
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type plugin from "tailwindcss/plugin"

// Export types
declare const daisyui: ReturnType<typeof plugin>
export = daisyui

0 comments on commit 1b39afb

Please sign in to comment.