mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Add note about use of isTupleType()
This commit is contained in:
@@ -4339,6 +4339,8 @@ module ts {
|
||||
}
|
||||
|
||||
function isTupleType(type: Type) : boolean {
|
||||
// Check if a Type exactly implements interface TupleType. Typical typechecking code should rely on
|
||||
// isTupleLikeType() instead.
|
||||
return (type.flags & TypeFlags.Tuple) && !!(<TupleType>type).elementTypes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user