diff --git a/src/frontend/package.json b/src/frontend/package.json index a5c4d61eb..f6dbc3be7 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -68,7 +68,8 @@ "start": "vite", "build": "vite build", "serve": "vite preview", - "format": "npx prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"" + "format": "npx prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", + "type-check": "tsc --noEmit --pretty --project tsconfig.json && vite" }, "eslintConfig": { "extends": [ diff --git a/src/frontend/src/types/api/index.ts b/src/frontend/src/types/api/index.ts index 0354e69fe..df46399dc 100644 --- a/src/frontend/src/types/api/index.ts +++ b/src/frontend/src/types/api/index.ts @@ -15,7 +15,7 @@ export type APIClassType = { input_types?: Array; output_types?: Array; documentation: string; - [key: string]: Array | string | APITemplateType; + [key: string]: Array | string | APITemplateType | undefined; }; export type TemplateVariableType = { diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index c411ff4e7..1879137c5 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -6,7 +6,7 @@ "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, - "strict": false, + "strict": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "esnext",