diff --git a/package.json b/package.json index d545f95..2e6ef61 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "lodash-es": "^4.17.21", "pinia": "^2.1.4", "reflect-metadata": "^0.1.13", + "tslib": "^2.6.1", "typeorm": "^0.3.17", "vue": "^3.3.4", "vue-router": "^4.2.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index da915de..f965bf8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ dependencies: reflect-metadata: specifier: ^0.1.13 version: 0.1.13 + tslib: + specifier: ^2.6.1 + version: 2.6.1 typeorm: specifier: ^0.3.17 version: 0.3.17(ts-node@10.9.1) diff --git a/tsconfig.json b/tsconfig.json index 95aeffb..bea208e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,9 @@ "experimentalDecorators": true, "emitDecoratorMetadata": true, "resolveJsonModule": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": true, "isolatedModules": true, "verbatimModuleSyntax": true, "allowSyntheticDefaultImports": true, @@ -19,5 +22,6 @@ "forceConsistentCasingInFileNames": true, "moduleResolution": "node", "strict": true, + "importHelpers": true } } diff --git a/tsconfig.server.json b/tsconfig.server.json index 936b7e0..ae37761 100644 --- a/tsconfig.server.json +++ b/tsconfig.server.json @@ -55,7 +55,7 @@ "outDir": "./dist_server/", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "noEmit": true, /* Disable emitting files from a compilation. */ - // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "importsNotUsedAsValues": "error", /* Specify emit/checking behavior for imports that are only used for types. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ @@ -89,11 +89,11 @@ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ - // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ - // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ - // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ /* Completeness */