Skip to content

Commit

Permalink
fix: saadeghi#1366 add type for daisyui plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
soorria committed Dec 31, 2022
1 parent 9737c76 commit 3bf8182
Show file tree
Hide file tree
Showing 2 changed files with 11 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"
}
}
}
6 changes: 6 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// <reference types="./tailwind-config" />
import type plugin from "tailwindcss/plugin"

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

0 comments on commit 3bf8182

Please sign in to comment.