Skip to content

Commit 918156a

Browse files
authored
TsConfigJson: Add TypeScript 5.8 fields (#1064)
1 parent 3c03a0d commit 918156a

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
matrix:
3535
typescript-version:
3636
- "latest"
37+
- "~5.8.0"
3738
- "~5.7.0"
3839
- "~5.6.0"
3940
- "~5.5.0"

source/tsconfig-json.d.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ declare namespace TsConfigJson {
1818
| 'ES2022'
1919
| 'ESNext'
2020
| 'Node16'
21+
| 'Node18'
2122
| 'NodeNext'
2223
| 'Preserve'
2324
| 'None'
@@ -32,6 +33,7 @@ declare namespace TsConfigJson {
3233
| 'es2022'
3334
| 'esnext'
3435
| 'node16'
36+
| 'node18'
3537
| 'nodenext'
3638
| 'preserve'
3739
| 'none';
@@ -1109,6 +1111,20 @@ declare namespace TsConfigJson {
11091111
Suppress deprecation warnings
11101112
*/
11111113
ignoreDeprecations?: CompilerOptions.IgnoreDeprecations;
1114+
1115+
/**
1116+
Do not allow runtime constructs that are not part of ECMAScript.
1117+
1118+
@default false
1119+
*/
1120+
erasableSyntaxOnly?: boolean;
1121+
1122+
/**
1123+
Enable lib replacement.
1124+
1125+
@default true
1126+
*/
1127+
libReplacement?: boolean;
11121128
};
11131129

11141130
namespace WatchOptions {
@@ -1160,12 +1176,12 @@ declare namespace TsConfigJson {
11601176
synchronousWatchDirectory?: boolean;
11611177

11621178
/**
1163-
Specifies a list of directories to exclude from watch
1179+
Specifies a list of directories to exclude from watch.
11641180
*/
11651181
excludeDirectories?: string[];
11661182

11671183
/**
1168-
Specifies a list of files to exclude from watch
1184+
Specifies a list of files to exclude from watch.
11691185
*/
11701186
excludeFiles?: string[];
11711187
};

0 commit comments

Comments
 (0)