Skip to content

Commit 3470539

Browse files
mhegazymadskristensen
authored andcommitted
Update schema for TS 2.9 flags (#451)
* Add `es2017.intl` and `es2018.intl` to the list of lib files. Also split on multiple lines * Add documentation for `--keyofStringOnly`, `--declarationMap` and `--resolveJsonModule`
1 parent cfd131a commit 3470539

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

src/schemas/json/jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@
329329
"description": "Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility. Requires TypeScript version 2.7 or later.",
330330
"type": "boolean"
331331
},
332+
"keyofStringsOnly": {
333+
"description": "Resolve 'keyof' to string valued property names only (no numbers or symbols). Requires TypeScript version 2.9 or later.",
334+
"type": "boolean"
335+
},
336+
"resolveJsonModule": {
337+
"description": "Include modules imported with '.json' extension. Requires TypeScript version 2.9 or later.",
338+
"type": "boolean"
339+
},
332340
"plugins": {
333341
"description": "List of TypeScript language server plugins to load. Requires TypeScript version 2.3 or later.",
334342
"type": "array",

src/schemas/json/tsconfig.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,12 @@
383383
"type": "array",
384384
"items": {
385385
"type": "string",
386-
"enum": [ "es5", "es6", "es2015", "es7", "es2016", "es2017", "es2018", "esnext", "dom", "dom.iterable", "webworker", "scripthost", "es2015.core", "es2015.collection", "es2015.generator", "es2015.iterable",
387-
"es2015.promise", "es2015.proxy", "es2015.reflect", "es2015.symbol", "es2015.symbol.wellknown", "es2016.array.include", "es2017.object", "es2017.sharedmemory", "es2017.string", "es2017.typedarrays", "es2018.promise", "es2018.regexp", "esnext.array", "esnext.asynciterable"]
386+
"enum": [ "es5", "es6", "es2015", "es7", "es2016", "es2017", "es2018", "esnext", "dom", "dom.iterable", "webworker", "scripthost",
387+
"es2015.core", "es2015.collection", "es2015.generator", "es2015.iterable", "es2015.promise", "es2015.proxy", "es2015.reflect", "es2015.symbol", "es2015.symbol.wellknown",
388+
"es2016.array.include",
389+
"es2017.object", "es2017.sharedmemory", "es2017.string", "es2017.typedarrays", "es2017.intl",
390+
"es2018.promise", "es2018.regexp", "es2018.intl",
391+
"esnext.array", "esnext.asynciterable"]
388392
}
389393
},
390394
"strictNullChecks": {
@@ -432,6 +436,18 @@
432436
"esModuleInterop": {
433437
"description": "Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility. Requires TypeScript version 2.7 or later.",
434438
"type": "boolean"
439+
},
440+
"keyofStringsOnly": {
441+
"description": "Resolve 'keyof' to string valued property names only (no numbers or symbols). Requires TypeScript version 2.9 or later.",
442+
"type": "boolean"
443+
},
444+
"declarationMap": {
445+
"description": "Generates a sourcemap for each corresponding '.d.ts' file. Requires TypeScript version 2.9 or later.",
446+
"type": "boolean"
447+
},
448+
"resolveJsonModule": {
449+
"description": "Include modules imported with '.json' extension. Requires TypeScript version 2.9 or later.",
450+
"type": "boolean"
435451
}
436452
}
437453
}

0 commit comments

Comments
 (0)