From 59f276aeaf92908f74c85434ddd49507bd24b186 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Mon, 29 Apr 2024 00:09:10 -0500 Subject: [PATCH 1/2] Add preserve module option as of TS 5.4 link: https://www.typescriptlang.org/tsconfig/#preserve --- source/tsconfig-json.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/tsconfig-json.d.ts b/source/tsconfig-json.d.ts index b15f2713f..b8f4520d2 100644 --- a/source/tsconfig-json.d.ts +++ b/source/tsconfig-json.d.ts @@ -19,6 +19,7 @@ declare namespace TsConfigJson { | 'ESNext' | 'Node16' | 'NodeNext' + | 'Preserve' | 'None' // Lowercase alternatives | 'commonjs' @@ -32,6 +33,7 @@ declare namespace TsConfigJson { | 'esnext' | 'node16' | 'nodenext' + | 'preserve' | 'none'; export type NewLine = From 4c72b3e092ccac69ce76c120e9f39a4b2de96830 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Mon, 29 Apr 2024 00:19:26 -0500 Subject: [PATCH 2/2] Add ES2022 to Lib Link: https://github.com/microsoft/TypeScript/blob/release-5.4/src/lib/libs.json#L64-L70 --- source/tsconfig-json.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/tsconfig-json.d.ts b/source/tsconfig-json.d.ts index b8f4520d2..710a03f1a 100644 --- a/source/tsconfig-json.d.ts +++ b/source/tsconfig-json.d.ts @@ -115,6 +115,14 @@ declare namespace TsConfigJson { | 'ES2021.Promise' | 'ES2021.String' | 'ES2021.WeakRef' + | 'ES2022' + | 'ES2022.Array' + | 'ES2022.Error' + | 'ES2022.Intl' + | 'ES2022.Object' + | 'ES2022.SharedMemory' + | 'ES2022.String' + | 'ES2022.RegExp' | 'ESNext' | 'ESNext.Array' | 'ESNext.AsyncIterable' @@ -174,6 +182,14 @@ declare namespace TsConfigJson { | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' + | 'es2022' + | 'es2022.array' + | 'es2022.error' + | 'es2022.intl' + | 'es2022.object' + | 'es2022.sharedmemory' + | 'es2022.string' + | 'es2022.regexp' | 'esnext' | 'esnext.array' | 'esnext.asynciterable'