8000 Add note about use of isTupleType() · fleurdeswift/TypeScript@7acb410 · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit 7acb410

Browse files
committed
Add note about use of isTupleType()
1 parent bd2c239 commit 7acb410

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4339,6 +4339,8 @@ module ts {
43394339
}
43404340

43414341
function isTupleType(type: Type) : boolean {
4342+
// Check if a Type exactly implements interface TupleType. Typical typechecking code should rely on
4343+
// isTupleLikeType() instead.
43424344
return (type.flags & TypeFlags.Tuple) && !!(<TupleType>type).elementTypes;
43434345
}
43444346

0 commit comments

Comments
 (0)
0