( validator: ContextualTarget, context: ArkEnv.context )
| 390 | |
| 391 | // a validator bound to `context`, or itself when no callback in the bundle reads context |
| 392 | export 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 |
| 399 | export const standardValidated = ( |