Skip to content

Commit

Permalink
Merge branch 'master' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 28, 2021
2 parents 23bbda5 + 266f33a commit fcaeb42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ schema.validate({ name: 'jimmy', age: 11 }).catch(function (err) {
- [`mixed.isValidSync(value: any, options?: object): boolean`](#mixedisvalidsyncvalue-any-options-object-boolean)
- [`mixed.cast(value: any, options = {}): any`](#mixedcastvalue-any-options---any)
- [`mixed.isType(value: any): boolean`](#mixedistypevalue-any-boolean)
- [`mixed.strict(isStrict: boolean = false): Schema`](#mixedstrictisstrict-boolean--false-schema)
- [`mixed.strict(isStrict: boolean = true): Schema`](#mixedstrictisstrict-boolean--false-schema)
- [`mixed.strip(stripField: boolean = true): Schema`](#mixedstripstripfield-boolean--true-schema)
- [`mixed.withMutation(builder: (current: Schema) => void): void`](#mixedwithmutationbuilder-current-schema--void-void)
- [`mixed.default(value: any): Schema`](#mixeddefaultvalue-any-schema)
Expand Down
1 change: 1 addition & 0 deletions src/util/createValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type CreateErrorOptions = {
export type TestContext<TContext = {}> = {
path: string;
options: ValidateOptions<TContext>;
originalValue: any;
parent: any;
from?: Array<{ schema: ISchema<any, TContext>; value: any }>;
schema: any; // TODO: Schema<any>;
Expand Down

0 comments on commit fcaeb42

Please sign in to comment.