diff --git a/src/schemas/json/jsconfig.json b/src/schemas/json/jsconfig.json index 7918ca0d380..4ae36377834 100644 --- a/src/schemas/json/jsconfig.json +++ b/src/schemas/json/jsconfig.json @@ -1217,6 +1217,13 @@ "type": ["boolean", "null"], "default": false, "markdownDescription": "Check side effect imports.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUncheckedSideEffectImports" + }, + "strictBuiltinIteratorReturn": { + "$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).", + "description": "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'.", + "type": ["boolean", "null"], + "default": false, + "markdownDescription": "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictBuiltinIteratorReturn" } } } diff --git a/src/test/jsconfig/jsconfig-strictBuiltinIteratorReturn.json b/src/test/jsconfig/jsconfig-strictBuiltinIteratorReturn.json new file mode 100644 index 00000000000..5c2c486ccd2 --- /dev/null +++ b/src/test/jsconfig/jsconfig-strictBuiltinIteratorReturn.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "strictBuiltinIteratorReturn": true + } +}