From 07d956964d2aa0c6fd6a2641a77bed2704f2ce2b Mon Sep 17 00:00:00 2001 From: hmt Date: Sun, 5 Jun 2022 20:24:56 +0200 Subject: [PATCH] bugfix TS --- global.d.ts | 1 + package-lock.json | 2 +- package.json | 4 ++-- rollup.config.js | 4 ++-- src/server.ts | 2 +- tsconfig.json | 12 +----------- 6 files changed, 8 insertions(+), 17 deletions(-) create mode 100644 global.d.ts diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 0000000..0e72969 --- /dev/null +++ b/global.d.ts @@ -0,0 +1 @@ +/// \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ba92a86..ad3a06d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "svelte-check": "^2.7.2", "svelte-preprocess": "^4.0.0", "tslib": "^2.0.0", - "typescript": "^4.1.3" + "typescript": "^4.7.3" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 0f46a16..fd97cea 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "@tsconfig/svelte": "^3.0.0", "@types/node": "^17.0.40", "bulma": "^0.9.2", - "fast-xml-parser": "^4.0.8", "rollup": "^2.3.4", "rollup-plugin-css-only": "^3.1.0", "rollup-plugin-livereload": "^2.0.0", @@ -25,11 +24,12 @@ "svelte-check": "^2.7.2", "svelte-preprocess": "^4.0.0", "tslib": "^2.0.0", - "typescript": "^4.1.3" + "typescript": "^4.7.3" }, "dependencies": { "apexcharts": "^3.24.0", "jssha": "^3.2.0", + "fast-xml-parser": "^4.0.8", "svelte-apexcharts": "^1.0.2" } } diff --git a/rollup.config.js b/rollup.config.js index 4942030..ee11f4c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -64,8 +64,8 @@ export default { typescript({ sourceMap: !production, inlineSources: !production, - target: "es6", - lib: [ "es2019", "dom" ] + target: "esnext", + lib: [ "esnext", "dom" ] }), // In dev mode, call `npm run start` once diff --git a/src/server.ts b/src/server.ts index 2a119be..3cbf956 100644 --- a/src/server.ts +++ b/src/server.ts @@ -11,7 +11,7 @@ export class Server { url: string status: string - interval_id: Timer, + interval_id: NodeJS.Timer meetings: meeting[] audio: number video: number diff --git a/tsconfig.json b/tsconfig.json index a0349bd..310fb9b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,4 @@ { "extends": "@tsconfig/svelte/tsconfig.json", - - "include": ["src/**/*"], - "exclude": ["node_modules/*", "__sapper__/*", "public/*"], - "compilerOptions": { - "target": "esnext", - "module": "esnext", - "lib": [ "es2019", "dom" ], - "types": [ - "node" - ] - } + "exclude": ["node_modules/*", "public/*"], } \ No newline at end of file