mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
nullable(): make argument isNullable optional
Following the repository documentation, the argument isNullable is optional because it has the default value `true`. https://github.com/jquense/yup#mixednullableisnullable-boolean--true-schema
This commit is contained in:
2
types/yup/index.d.ts
vendored
2
types/yup/index.d.ts
vendored
@@ -70,7 +70,7 @@ export interface Schema<T> {
|
||||
withMutation(fn: (current: this) => void): void;
|
||||
default(value: any): this;
|
||||
default(): T;
|
||||
nullable(isNullable: boolean): this;
|
||||
nullable(isNullable?: boolean): this;
|
||||
required(message?: TestOptionsMessage): this;
|
||||
notRequired(): this;
|
||||
typeError(message?: TestOptionsMessage): this;
|
||||
|
||||
Reference in New Issue
Block a user