Skip to content

Commit

Permalink
refactor: use env declaration files over tsconfig compilerOptions.types
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Sep 4, 2024
1 parent 693e35e commit 167bc33
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
4 changes: 4 additions & 0 deletions apps/gpa-calculator/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/vanillajs" />
/// <reference types="@total-typescript/ts-reset" />
/// <reference types="typed-query-selector/strict" />
1 change: 0 additions & 1 deletion apps/gpa-calculator/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import "./styles/global.css";
import html from "html-template-tag";
import type {} from "typed-query-selector/strict";
import { type Course, newCourse } from "./data/data-types.js";
import {
clearAll,
Expand Down
7 changes: 1 addition & 6 deletions apps/gpa-calculator/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@
"checkJs": false,
"experimentalDecorators": false,
"useDefineForClassFields": true,
"paths": {},
"types": [
"vite-plugin-pwa/vanillajs",
"vite/client",
"@total-typescript/ts-reset"
]
"paths": {}
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
Expand Down
4 changes: 4 additions & 0 deletions apps/phs-map/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/vanillajs" />
/// <reference types="@total-typescript/ts-reset" />
/// <reference types="typed-query-selector/strict" />
1 change: 0 additions & 1 deletion apps/phs-map/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import "./styles/bounce.css";
import "./styles/style.css";
import html from "html-template-tag";
import * as PF from "pathfinding";
import type {} from "typed-query-selector/strict";
import { createStorage, type Storage } from "unstorage";
import indexedDbDriver from "unstorage/drivers/indexedb";
import { fromZodError } from "zod-validation-error";
Expand Down
7 changes: 1 addition & 6 deletions apps/phs-map/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@
"checkJs": false,
"experimentalDecorators": false,
"useDefineForClassFields": true,
"paths": {},
"types": [
"vite-plugin-pwa/vanillajs",
"vite/client",
"@total-typescript/ts-reset"
]
"paths": {}
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 167bc33

Please sign in to comment.