From 09af1a5fef9d6c9e2c1b50484701b1cfd7c7e938 Mon Sep 17 00:00:00 2001 From: scarf Date: Fri, 30 Jun 2023 05:20:24 +0900 Subject: [PATCH] fix: add `exactOptionalPropertyTypes` for configuration file JSON schema (#19647) - fixes #19646 lines copied from: https://github.com/SchemaStore/schemastore/blob/8513fdcc29f89a3b864bd712e6fdd78a6691884f/src/schemas/json/tsconfig.json#L281-L286 --- cli/schemas/config-file.v1.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json index 73723c52bd..a4a4e881e0 100644 --- a/cli/schemas/config-file.v1.json +++ b/cli/schemas/config-file.v1.json @@ -34,6 +34,12 @@ "default": false, "markdownDescription": "Enable error reporting in type-checked JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#checkJs" }, + "exactOptionalPropertyTypes": { + "description": "Differentiate between undefined and not present when type checking", + "type": "boolean", + "default": false, + "markdownDescription": "Differentiate between undefined and not present when type checking\n\nSee more: https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes" + }, "experimentalDecorators": { "description": "Enable experimental support for TC39 stage 2 draft decorators.", "type": "boolean",