From 3fca699f7ba88a354a1875f9565a75e28c1b84fd Mon Sep 17 00:00:00 2001 From: Simon Alling Date: Sun, 11 May 2025 20:15:30 +0200 Subject: [PATCH 1/2] build: Enable exactOptionalPropertyTypes --- src/build-time/internal/webpack-plugin.ts | 2 +- tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build-time/internal/webpack-plugin.ts b/src/build-time/internal/webpack-plugin.ts index d2c06ef..810d30b 100644 --- a/src/build-time/internal/webpack-plugin.ts +++ b/src/build-time/internal/webpack-plugin.ts @@ -21,7 +21,7 @@ export class UserscripterWebpackPlugin { buildConfigErrors: ReadonlyArray> envVarErrors: readonly EnvVarError[] envVars: ReadonlyArray - manifest?: Manifest + manifest: Manifest | undefined metadataStringified: string metadataValidationResult: Metadata.ValidationResult overriddenBuildConfig: BuildConfig diff --git a/tsconfig.json b/tsconfig.json index 724abf7..5b8d211 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,7 @@ "declaration": true, "emitDecoratorMetadata": true, "esModuleInterop": true, + "exactOptionalPropertyTypes": true, "experimentalDecorators": true, "lib": [ "es2018", From 53cff5221f34ef27370b93ddc0976c787549ddc0 Mon Sep 17 00:00:00 2001 From: Simon Alling Date: Sun, 11 May 2025 20:42:42 +0200 Subject: [PATCH 2/2] Enable skipLibCheck --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 5b8d211..7b8879b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,6 +24,7 @@ "outDir": ".", "removeComments": true, "rootDir": "src", + "skipLibCheck": true, "strict": true, "target": "es2018", },