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

Function writeInvalidUndeclaredKeyBehaviorMessage

ark/schema/config.ts:167–170  ·  view source on GitHub ↗
(
	actual: unknown
)

Source from the content-addressed store, hash-verified

165const undeclaredKeyBehaviors = { reject: 1, delete: 1, ignore: 1 }
166
167export const writeInvalidUndeclaredKeyBehaviorMessage = (
168 actual: unknown
169): string =>
170 `onUndeclaredKey must be 'reject', 'delete', or 'ignore' (was ${printable(actual)})`
171
172/**
173 * @internal throws for 2.x's `problem` in a code's config, which a cast or

Callers 1

configureSchemaFunction · 0.85

Calls 1

printableFunction · 0.90

Tested by

no test coverage detected