From c69eb33d2493ac55cd400c0fd367c0e875a0bbe6 Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Wed, 26 Jul 2023 18:31:15 -0300 Subject: [PATCH] fix pull problems --- src/frontend/package.json | 3 ++- src/frontend/src/types/api/index.ts | 2 +- src/frontend/tsconfig.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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",