From 4889d67157128c9df496df4f541ee9688b973e8c Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 16 Sep 2024 19:39:07 -0300 Subject: [PATCH] Fix CI --- etc/tsconfig.json | 7 +++---- src/js/{typings => types}/globals.d.ts | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) rename src/js/{typings => types}/globals.d.ts (81%) diff --git a/etc/tsconfig.json b/etc/tsconfig.json index 4dae8b011..e8db8d117 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 b6aaad133..88d5dd5da 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; }