Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd87d90

Browse filesBrowse files
committed
Update comment
1 parent 6fdd929 commit cd87d90
Copy full SHA for cd87d90

1 file changed

+3-3Lines changed: 3 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/checker.ts‎

Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10041,9 +10041,9 @@ namespace ts {
1004110041
return f(type) ? type : neverType;
1004210042
}
1004310043

10044-
// Apply a mapping function to a contextual type and return the resulting type. If the contextual type
10045-
// is a union type, the mapping function is applied to each constituent type and a union of the resulting
10046-
// types is returned.
10044+
// Apply a mapping function to a type and return the resulting type. If the source type
10045+
// is a union type, the mapping function is applied to each constituent type and a union
10046+
// of the resulting types is returned.
1004710047
function mapType(type: Type, mapper: (t: Type) => Type): Type {
1004810048
if (!(type.flags & TypeFlags.Union)) {
1004910049
return mapper(type);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.