mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-28 17:21:43 +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:
Vendored
+1
-1
@@ -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