Skip to content

Build your personal knowledge base with Trilium Notes

chore(script_deployer): fix more typecheck issues

Elian Doran366461fdce66
diff --git a/apps/script-deployer/src/trilium-env.d.ts b/apps/script-deployer/src/trilium-env.d.ts
index b7481e901a..3dd13e3207 100644
--- a/apps/script-deployer/src/trilium-env.d.ts
+++ b/apps/script-deployer/src/trilium-env.d.ts
@@ -1,3 +1,5 @@
+/// <reference types="vite/client" />
+
/**
* Ambient type declarations for the virtual modules available inside
* Trilium user scripts (`trilium:preact` and `trilium:api`).
diff --git a/apps/script-deployer/tsconfig.json b/apps/script-deployer/tsconfig.json
index e149644951..eae3e9e904 100644
--- a/apps/script-deployer/tsconfig.json
+++ b/apps/script-deployer/tsconfig.json
@@ -2,13 +2,9 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
- "allowJs": true,
- "checkJs": true,
- "jsx": "react",
- "jsxFactory": "h",
- "jsxFragmentFactory": "Fragment",
+ "jsx": "preserve",
"moduleResolution": "bundler",
"module": "esnext"
},
- "include": ["src", "scripts"]
+ "include": ["src", "scripts", "../server/src/express.d.ts"]
}