diff --git a/package.json b/package.json index dcddec3..b871469 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "build": "npm run build:popup && npm run build:extension", "build:popup": "vite build", "build:extension": "node build-extension.js", - "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.0.0", diff --git a/src/app.d.ts b/src/app.d.ts index f9a5b0f..3735081 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,25 +1,31 @@ // See https://kit.svelte.dev/docs/types#app // for information about these interfaces +import MaintenanceProfile from "$entities/MaintenanceProfile.ts"; + declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface PageState {} - // interface Platform {} - type LinkTarget = "_blank" | "_self" | "_parent" | "_top"; - type IconName = ( - "tag" - | "paint-brush" - | "arrow-left" - | "info-circle" - | "wrench" - | "globe" - | "plus" - | "file-export" - | "trash" - ); + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + type LinkTarget = "_blank" | "_self" | "_parent" | "_top"; + type IconName = ( + "tag" + | "paint-brush" + | "arrow-left" + | "info-circle" + | "wrench" + | "globe" + | "plus" + | "file-export" + | "trash" + ); + + interface EntityNamesMap { + profiles: MaintenanceProfile; } + } } export {}; diff --git a/src/components/maintenance/ProfileView.svelte b/src/components/maintenance/ProfileView.svelte index 7a01c62..d3084bb 100644 --- a/src/components/maintenance/ProfileView.svelte +++ b/src/components/maintenance/ProfileView.svelte @@ -1,5 +1,5 @@