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

Function withContextOf

ark/type/runtime.ts:392–396  ·  view source on GitHub ↗
(
	validator: ContextualTarget,
	context: ArkEnv.context
)

Source from the content-addressed store, hash-verified

390
391// a validator bound to `context`, or itself when no callback in the bundle reads context
392export const withContextOf = (
393 validator: ContextualTarget,
394 context: ArkEnv.context
395): ContextualTarget =>
396 readsContext ? schemaWithContextOf(validator, context) : validator
397
398// a validation Standard Schema asked for, in the context its options pass
399export const standardValidated = (

Callers 1

runtime.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected