Skip to content

Commit

Permalink
Merge pull request #3951 from rbuckton/strictBuiltinIteratorReturn
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Jul 26, 2024
2 parents 9341f2f + 24cbb93 commit b92e04e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/schemas/json/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,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"
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/test/jsconfig/jsconfig-strictBuiltinIteratorReturn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"strictBuiltinIteratorReturn": true
}
}
5 changes: 5 additions & 0 deletions src/test/tsconfig/tsconfig-strictBuiltinIteratorReturn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"strictBuiltinIteratorReturn": true
}
}

0 comments on commit b92e04e

Please sign in to comment.