Skip to content

Commit

Permalink
Update schema for TS 2.9 flags (#451)
Browse files Browse the repository at this point in the history
* Add `es2017.intl` and `es2018.intl` to the list of lib files. Also split on multiple lines

* Add documentation for `--keyofStringOnly`, `--declarationMap` and `--resolveJsonModule`
  • Loading branch information
mhegazy authored and madskristensen committed May 13, 2018
1 parent cfd131a commit 3470539
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/schemas/json/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,14 @@
"description": "Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility. Requires TypeScript version 2.7 or later.",
"type": "boolean"
},
"keyofStringsOnly": {
"description": "Resolve 'keyof' to string valued property names only (no numbers or symbols). Requires TypeScript version 2.9 or later.",
"type": "boolean"
},
"resolveJsonModule": {
"description": "Include modules imported with '.json' extension. Requires TypeScript version 2.9 or later.",
"type": "boolean"
},
"plugins": {
"description": "List of TypeScript language server plugins to load. Requires TypeScript version 2.3 or later.",
"type": "array",
Expand Down
20 changes: 18 additions & 2 deletions src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,12 @@
"type": "array",
"items": {
"type": "string",
"enum": [ "es5", "es6", "es2015", "es7", "es2016", "es2017", "es2018", "esnext", "dom", "dom.iterable", "webworker", "scripthost", "es2015.core", "es2015.collection", "es2015.generator", "es2015.iterable",
"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"]
"enum": [ "es5", "es6", "es2015", "es7", "es2016", "es2017", "es2018", "esnext", "dom", "dom.iterable", "webworker", "scripthost",
"es2015.core", "es2015.collection", "es2015.generator", "es2015.iterable", "es2015.promise", "es2015.proxy", "es2015.reflect", "es2015.symbol", "es2015.symbol.wellknown",
"es2016.array.include",
"es2017.object", "es2017.sharedmemory", "es2017.string", "es2017.typedarrays", "es2017.intl",
"es2018.promise", "es2018.regexp", "es2018.intl",
"esnext.array", "esnext.asynciterable"]
}
},
"strictNullChecks": {
Expand Down Expand Up @@ -432,6 +436,18 @@
"esModuleInterop": {
"description": "Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility. Requires TypeScript version 2.7 or later.",
"type": "boolean"
},
"keyofStringsOnly": {
"description": "Resolve 'keyof' to string valued property names only (no numbers or symbols). Requires TypeScript version 2.9 or later.",
"type": "boolean"
},
"declarationMap": {
"description": "Generates a sourcemap for each corresponding '.d.ts' file. Requires TypeScript version 2.9 or later.",
"type": "boolean"
},
"resolveJsonModule": {
"description": "Include modules imported with '.json' extension. Requires TypeScript version 2.9 or later.",
"type": "boolean"
}
}
}
Expand Down

0 comments on commit 3470539

Please sign in to comment.