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

Function writeNonArraySpreadMessage

ark/type/parser/tupleLiteral.ts:450–453  ·  view source on GitHub ↗
(
	operand: operand
)

Source from the content-addressed store, hash-verified

448 number extends s["inferred"]["length"] ? true : false
449
450export const writeNonArraySpreadMessage = <operand extends string>(
451 operand: operand
452): writeNonArraySpreadMessage<operand> =>
453 `Spread element must be an array (was ${operand})` as never
454
455type writeNonArraySpreadMessage<operand> =
456 `Spread element must be an array${operand extends string ? ` (was ${operand})`

Callers 3

array.test.tsFile · 0.90
parseTupleLiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected