MCPcopy Index your code
hub / github.com/nodejs/node / isTupleType

Function isTupleType

test/fixtures/snapshot/typescript.js:67544–67546  ·  view source on GitHub ↗

* Check if a Type was written as a tuple type literal. * Prefer using isTupleLikeType() unless the use of `elementTypes`/`getTypeArguments` is required.

(type)

Source from the content-addressed store, hash-verified

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 }

Calls

no outgoing calls

Tested by

no test coverage detected