MCPcopy Create free account
hub / github.com/microsoft/typescript-go / isTupleType

Function isTupleType

internal/checker/checker.go:23397–23399  ·  view source on GitHub ↗
(t *Type)

Source from the content-addressed store, hash-verified

23395}
23396
23397func isTupleType(t *Type) bool {
23398 return t.objectFlags&ObjectFlagsReference != 0 && t.Target().objectFlags&ObjectFlagsTuple != 0
23399}
23400
23401func isMutableTupleType(t *Type) bool {
23402 return isTupleType(t) && !t.TargetTupleType().readonly

Calls 1

TargetMethod · 0.45

Tested by

no test coverage detected