MCPcopy Create free account
hub / github.com/arktypeio/arktype / isIndexZeroExpression

Function isIndexZeroExpression

ark/type/parser/tupleExpressions.ts:624–625  ·  view source on GitHub ↗
(def: array)

Source from the content-addressed store, hash-verified

622export type IndexZeroOperator = keyof typeof indexZeroParsers
623
624const isIndexZeroExpression = (def: array): def is IndexZeroExpression =>
625 isOperatorOf(def[0], indexZeroParsers)
626
627// a non-string element could run user code if coerced to a property key
628const isOperatorOf = (element: unknown, parsers: object) =>

Callers 1

Calls 1

isOperatorOfFunction · 0.85

Tested by

no test coverage detected