Add note about use of isTupleType()

This commit is contained in:
Caitlin Potter
2015-03-10 13:37:25 -04:00
parent bd2c239161
commit 7acb410251

View File

@@ -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;
}