From 7acb410251dca0e1001dc26bab2f8e360c590ba7 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Tue, 10 Mar 2015 13:37:25 -0400 Subject: [PATCH] Add note about use of isTupleType() --- src/compiler/checker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ec45bd98254..831f2258db0 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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) && !!(type).elementTypes; }