diff --git a/src/frontend/src/utils/utils.ts b/src/frontend/src/utils/utils.ts index db87094f4..4d9c73f3d 100644 --- a/src/frontend/src/utils/utils.ts +++ b/src/frontend/src/utils/utils.ts @@ -1,7 +1,7 @@ import clsx, { ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; import { ADJECTIVES, DESCRIPTIONS, NOUNS } from "../flow_constants"; -import { APIDataType } from "../types/api"; +import { APIDataType, TemplateVariableType } from "../types/api"; import { IVarHighlightType, groupedObjType, @@ -121,7 +121,7 @@ export function groupByFamily( "int", ]); - const checkBaseClass = (template) => + const checkBaseClass = (template: TemplateVariableType) => template.type && template.show && ((!excludeTypes.has(template.type) && baseClassesSet.has(template.type)) || diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index 1879137c5..88e7e83a6 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -6,7 +6,7 @@ "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, - "strict": true, + "strict": false, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "esnext", @@ -15,7 +15,7 @@ "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", - "noImplicitAny": false + "noImplicitAny": true }, "include": ["src"] }