@@ -19,10 +19,10 @@ json separate from validating it, via the `cast` method.
1919- [ Usage] ( #usage )
2020- [ API] ( #api )
2121 - [ ` yup ` ] ( #yup )
22- - [ ` .reach(schema: Schema, path: string, value: ?object, context: ?object): Schema ` ] ( #reachschema-schema-path-string-value-object-context-object-schema )
23- - [ ` .addMethod(schemaType: Schema, name: string, method: ()=> Schema): void ` ] ( #addmethodschematype-schema-name-string-method--schema-void )
22+ - [ ` yup.reach(schema: Schema, path: string, value: ?object, context: ?object): Schema ` ] ( #yupreachschema-schema-path-string-value-object-context-object-schema )
23+ - [ ` yup.addMethod(schemaType: Schema, name: string, method: ()=> Schema): void ` ] ( #yupaddmethodschematype-schema-name-string-method--schema-void )
24+ - [ ` yup.ref(path: string, options: { contextPrefix: string }): Ref ` ] ( #yuprefpath-string-options--contextprefix-string--ref )
2425 - [ ` ValidationError(errors: string | Array<string>, value: any, path: string) ` ] ( #validationerrorerrors-string--arraystring-value-any-path-string )
25- - [ ` ref(path: string, options: { contextPrefix: string }): Ref ` ] ( #refpath-string-options--contextprefix-string--ref )
2626 - [ mixed] ( #mixed )
2727 - [ ` mixed.clone(): Schema ` ] ( #mixedclone-schema )
2828 - [ ` mixed.label(label: string): Schema ` ] ( #mixedlabellabel-string-schema )
@@ -33,7 +33,8 @@ json separate from validating it, via the `cast` method.
3333 - [ ` mixed.isValid(value: any, options: ?object, callback: ?function): Promise<boolean> ` ] ( #mixedisvalidvalue-any-options-object-callback-function-promiseboolean )
3434 - [ ` mixed.cast(value: any): any ` ] ( #mixedcastvalue-any-any )
3535 - [ ` mixed.isType(value: any): boolean ` ] ( #mixedistypevalue-any-boolean )
36- - [ ` mixed.strict(isStrict: boolean = false): void ` ] ( #mixedstrictisstrict-boolean--false-void )
36+ - [ ` mixed.strict(isStrict: boolean = false): Schema ` ] ( #mixedstrictisstrict-boolean--false-schema )
37+ - [ ` mixed.strip(stripField: boolean = true): Schema ` ] ( #mixedstripstripfield-boolean--true-schema )
3738 - [ ` mixed.withMutation(builder: (current: Schema) => void): void ` ] ( #mixedwithmutationbuilder-current-schema--void-void )
3839 - [ ` mixed.default(value: any): Schema ` ] ( #mixeddefaultvalue-any-schema )
3940 - [ ` mixed.default(): Any ` ] ( #mixeddefault-any )
@@ -42,9 +43,9 @@ json separate from validating it, via the `cast` method.
4243 - [ ` mixed.typeError(message: string): Schema ` ] ( #mixedtypeerrormessage-string-schema )
4344 - [ ` mixed.oneOf(arrayOfValues: Array<any>, string: ?message): Schema ` Alias: ` equals ` ] ( #mixedoneofarrayofvalues-arrayany-string-message-schema-alias-equals )
4445 - [ ` mixed.notOneOf(arrayOfValues: Array<any>, string: ?message) ` ] ( #mixednotoneofarrayofvalues-arrayany-string-message )
45- - [ ` mixed.when(keys: string |Array<string>, builder: object | (value, schema)=> Schema): Schema ` ] ( #mixedwhenkeys-string-arraystring-builder-object--value-schema-schema-schema )
46- - [ ` mixed.test(name: string, message: string, test: function, callbackStyleAsync: ?boolean) ` ] ( #mixedtestname-string-message-string-test-function-callbackstyleasync-boolean )
47- - [ ` mixed.test(options: object) ` ] ( #mixedtestoptions-object )
46+ - [ ` mixed.when(keys: string | Array<string>, builder: object | (value, schema)=> Schema): Schema ` ] ( #mixedwhenkeys-string- -arraystring-builder-object--value-schema-schema-schema )
47+ - [ ` mixed.test(name: string, message: string, test: function, callbackStyleAsync: ?boolean): Schema ` ] ( #mixedtestname-string-message-string-test-function-callbackstyleasync-boolean-schema )
48+ - [ ` mixed.test(options: object): Schema ` ] ( #mixedtestoptions-object-schema )
4849 - [ ` mixed.transform((currentValue: any, originalValue: any) => any): Schema ` ] ( #mixedtransformcurrentvalue-any-originalvalue-any--any-schema )
4950 - [ string] ( #string )
5051 - [ ` string.required(message: ?string): Schema ` ] ( #stringrequiredmessage-string-schema )
@@ -62,18 +63,18 @@ json separate from validating it, via the `cast` method.
6263 - [ ` number.positive(message: ?string): Schema ` ] ( #numberpositivemessage-string-schema )
6364 - [ ` number.negative(message: ?string): Schema ` ] ( #numbernegativemessage-string-schema )
6465 - [ ` number.integer(message: ?string): Schema ` ] ( #numberintegermessage-string-schema )
65- - [ ` round(type: 'floor' | 'ceil' | 'round' = 'round'): Schema ` ] ( #roundtype -floor--ceil--round--round-schema )
66+ - [ ` number. round(type: 'floor' | 'ceil' | 'round' = 'round'): Schema` ] ( #numberroundtype -floor--ceil--round--round-schema )
6667 - [ boolean] ( #boolean )
6768 - [ date] ( #date )
68- - [ ` date.min(limit: Date | string | Ref, message: ?string) ` ] ( #dateminlimit-date--string--ref-message-string )
69- - [ ` date.max(limit: Date | string | Ref, message: ?string) ` ] ( #datemaxlimit-date--string--ref-message-string )
69+ - [ ` date.min(limit: Date | string | Ref, message: ?string): Schema ` ] ( #dateminlimit-date--string--ref-message-string-schema )
70+ - [ ` date.max(limit: Date | string | Ref, message: ?string): Schema ` ] ( #datemaxlimit-date--string--ref-message-string-schema )
7071 - [ array] ( #array )
71- - [ ` array.of(type: Schema): Schema ` ] ( #arrayoftype-schema-schema )
72+ - [ ` array.of(type: Schema): Schema ` ] ( #arrayoftype-schema-schema )
7273 - [ ` array.required(message: ?string): Schema ` ] ( #arrayrequiredmessage-string-schema )
7374 - [ ` array.min(limit: number | Ref, message: ?string): Schema ` ] ( #arrayminlimit-number--ref-message-string-schema )
7475 - [ ` array.max(limit: number | Ref, message: ?string): Schema ` ] ( #arraymaxlimit-number--ref-message-string-schema )
75- - [ ` array.ensure(): Schema ` ] ( #arrayensure-schema )
76- - [ ` array.compact(rejector: (value) => boolean): Schema ` ] ( #arraycompactrejector-value--boolean-schema )
76+ - [ ` array.ensure(): Schema ` ] ( #arrayensure-schema )
77+ - [ ` array.compact(rejector: (value) => boolean): Schema ` ] ( #arraycompactrejector-value--boolean-schema )
7778 - [ object] ( #object )
7879 - [ ` object.shape(fields: object, noSortEdges: ?Array<[string, string]>): Schema ` ] ( #objectshapefields-object-nosortedges-arraystring-string-schema )
7980 - [ ` object.from(fromKey: string, toKey: string, alias: boolean = false): Schema ` ] ( #objectfromfromkey-string-tokey-string-alias-boolean--false-schema )
0 commit comments