From de45e30de9b66c55acc3695460858dca13870dfc Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 9 Dec 2023 17:02:47 -0300 Subject: [PATCH] arreglar typescript --- common/tsconfig.json | 10 +++++++--- frontend/src/main.ts | 10 +++++----- frontend/tsconfig.json | 3 ++- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/common/tsconfig.json b/common/tsconfig.json index 9bf2a49..9d61976 100644 --- a/common/tsconfig.json +++ b/common/tsconfig.json @@ -3,12 +3,16 @@ "lib": ["es2023"], "module": "ES2020", "target": "es2022", + "moduleResolution": "Bundler", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "emitDeclarationOnly": true, - "declaration": true - } + "declaration": true, + "noEmit": true, + "allowJs": true, + "checkJs": true + }, + "include": ["*.js"] } diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 8a909a1..e736285 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -1,8 +1,8 @@ -import './app.css' -import App from './App.svelte' +import "./app.css"; +import App from "./App.svelte"; const app = new App({ - target: document.getElementById('app'), -}) + target: document.getElementById("app")!, +}); -export default app +export default app; diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 72c029b..2b6a74b 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -13,7 +13,8 @@ */ "allowJs": true, "checkJs": true, - "isolatedModules": true + "isolatedModules": true, + "noEmit": true }, "include": [ "src/**/*.ts",