* Check if a Type was written as a tuple type literal. * Prefer using isTupleLikeType() unless the use of `elementTypes`/`getTypeArguments` is required.
(type)
| 67542 | * Prefer using isTupleLikeType() unless the use of `elementTypes`/`getTypeArguments` is required. |
| 67543 | */ |
| 67544 | function isTupleType(type) { |
| 67545 | return !!(ts.getObjectFlags(type) & 4 /* ObjectFlags.Reference */ && type.target.objectFlags & 8 /* ObjectFlags.Tuple */); |
| 67546 | } |
| 67547 | function isGenericTupleType(type) { |
| 67548 | return isTupleType(type) && !!(type.target.combinedFlags & 8 /* ElementFlags.Variadic */); |
| 67549 | } |
no outgoing calls
no test coverage detected