Skip to content

Commit 1af4e1c

Browse files
committed
Removing unused function
1 parent 678d591 commit 1af4e1c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7843,11 +7843,6 @@ namespace ts {
78437843
return !!(type.flags & TypeFlags.Union ? forEach((<UnionType>type).types, isTupleLikeType) : isTupleLikeType(type));
78447844
}
78457845

7846-
// Return true if the given contextual type provides an index signature of the given kind
7847-
function contextualTypeHasIndexSignature(type: Type, kind: IndexKind): boolean {
7848-
return !!(type.flags & TypeFlags.Union ? forEach((<UnionType>type).types, t => getIndexInfoOfStructuredType(t, kind)) : getIndexInfoOfStructuredType(type, kind));
7849-
}
7850-
78517846
// In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of
78527847
// the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one
78537848
// exists. Otherwise, it is the type of the string index signature in T, if one exists.

0 commit comments

Comments
 (0)