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

Function writeOptionalIndexKeyMessage

ark/type/parser/objectLiteral.ts:355–358  ·  view source on GitHub ↗
(
	key: key
)

Source from the content-addressed store, hash-verified

353 `Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${printable(actual)})`
354
355export const writeOptionalIndexKeyMessage = <key extends IndexKey>(
356 key: key
357): writeOptionalIndexKeyMessage<key> =>
358 `Index signature ${key} can't be optional. Escape its '[' with a backslash for an optional key named '${key}'`
359
360export type writeOptionalIndexKeyMessage<key extends IndexKey> =
361 `Index signature ${key} can't be optional. Escape its '[' with a backslash for an optional key named '${key}'`

Callers 2

preparseKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected