diff --git a/package.json b/package.json index 76699a2..48d6a03 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "license": "MIT", "main": "index.js", + "typings": "dist/index.d.ts", "scripts": { "build": "tsc && cd ./demo && npm run build && cd -", "test": "jest", diff --git a/tsconfig.json b/tsconfig.json index 3e4d2eb..d29123c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, + "declaration": true, "jsx": "react" }, "include": [