diff --git a/etc/tsconfig.json b/etc/tsconfig.json index 4dae8b0..e8db8d1 100644 --- a/etc/tsconfig.json +++ b/etc/tsconfig.json @@ -1,20 +1,19 @@ { "include": [ - "../src/js/typings/globals.d.ts", "../src/**/*.ts", "../src/**/*.tsx", ], - "exclude": ["../node_modules"], "compilerOptions": { "strict": true, + "noImplicitAny": true, "module": "commonjs", "target": "ES2020", - "noImplicitAny": true, "moduleResolution": "node", "esModuleInterop": true, "jsx": "react-jsx", "lib": [ "ES2020", "DOM" ], - + "typeRoots": ["../src/js/types/globals.d.ts", "../node_modules/@types"], + "skipLibCheck": true, "baseUrl": "../src/", "paths": { "~/*": ["./js/*"], diff --git a/src/js/typings/globals.d.ts b/src/js/types/globals.d.ts similarity index 81% rename from src/js/typings/globals.d.ts rename to src/js/types/globals.d.ts index b6aaad1..88d5dd5 100644 --- a/src/js/typings/globals.d.ts +++ b/src/js/types/globals.d.ts @@ -1,5 +1,6 @@ import * as preact from "preact"; import * as hooks from "preact/hooks"; +import classn from "classnames"; declare global { const render: typeof preact.render; @@ -7,4 +8,5 @@ declare global { const useEffect: typeof hooks.useEffect; const useRef: typeof hooks.useRef; const useMemo: typeof hooks.useMemo; + const classNames: typeof classn; }