Skip to content

Commit cd87d90

Browse files
committed
Update comment
1 parent 6fdd929 commit cd87d90

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/compiler/checker.ts

Lines 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)