This commit is contained in:
0x1eef 2024-09-16 19:39:07 -03:00
parent 9599c2ca5f
commit 4889d67157
2 changed files with 5 additions and 4 deletions

View file

@ -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/*"],

View file

@ -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;
}