Skip to content

Commit 167bc33

Browse files
committed
refactor: use env declaration files over tsconfig compilerOptions.types
1 parent 693e35e commit 167bc33

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

apps/gpa-calculator/src/env.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/// <reference types="vite/client" />
2+
/// <reference types="vite-plugin-pwa/vanillajs" />
3+
/// <reference types="@total-typescript/ts-reset" />
4+
/// <reference types="typed-query-selector/strict" />

apps/gpa-calculator/src/script.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import "./styles/global.css";
1010
import html from "html-template-tag";
11-
import type {} from "typed-query-selector/strict";
1211
import { type Course, newCourse } from "./data/data-types.js";
1312
import {
1413
clearAll,

apps/gpa-calculator/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
"checkJs": false,
3333
"experimentalDecorators": false,
3434
"useDefineForClassFields": true,
35-
"paths": {},
36-
"types": [
37-
"vite-plugin-pwa/vanillajs",
38-
"vite/client",
39-
"@total-typescript/ts-reset"
40-
]
35+
"paths": {}
4136
},
4237
"include": ["src/**/*.ts"],
4338
"exclude": ["node_modules"]

apps/phs-map/src/env.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/// <reference types="vite/client" />
2+
/// <reference types="vite-plugin-pwa/vanillajs" />
3+
/// <reference types="@total-typescript/ts-reset" />
4+
/// <reference types="typed-query-selector/strict" />

apps/phs-map/src/script.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import "./styles/bounce.css";
1313
import "./styles/style.css";
1414
import html from "html-template-tag";
1515
import * as PF from "pathfinding";
16-
import type {} from "typed-query-selector/strict";
1716
import { createStorage, type Storage } from "unstorage";
1817
import indexedDbDriver from "unstorage/drivers/indexedb";
1918
import { fromZodError } from "zod-validation-error";

apps/phs-map/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
"checkJs": false,
3333
"experimentalDecorators": false,
3434
"useDefineForClassFields": true,
35-
"paths": {},
36-
"types": [
37-
"vite-plugin-pwa/vanillajs",
38-
"vite/client",
39-
"@total-typescript/ts-reset"
40-
]
35+
"paths": {}
4136
},
4237
"include": ["src/**/*.ts"],
4338
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)