MCPcopy
hub / github.com/jquense/yup / required

Function required

src/schema.ts:682–686  ·  view source on GitHub ↗
(message: Message<any> = locale.required)

Source from the content-addressed store, hash-verified

680 }
681
682 required(message: Message<any> = locale.required): any {
683 return this.clone().withMutation((next) =>
684 next.nonNullable(message).defined(message),
685 );
686 }
687 notRequired(): any {
688 return this.clone().withMutation((next) => next.nullable().optional());
689 }

Callers

nothing calls this directly

Calls 3

definedMethod · 0.65
nonNullableMethod · 0.65
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…