mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Yup compact rejector is optional
```
Yup.array()
.compact()
```
https://github.com/jquense/yup#arraycompactrejector-value--boolean-schema
This commit is contained in:
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for yup 0.26
|
||||
// Type definitions for yup 0.27
|
||||
// Project: https://github.com/jquense/yup
|
||||
// Definitions by: Dominik Hardtke <https://github.com/dhardtke>,
|
||||
// Vladyslav Tserman <https://github.com/vtserman>,
|
||||
@@ -163,7 +163,7 @@ export interface ArraySchema<T> extends Schema<T[]> {
|
||||
min(limit: number | Ref, message?: string): ArraySchema<T>;
|
||||
max(limit: number | Ref, message?: string): ArraySchema<T>;
|
||||
ensure(): ArraySchema<T>;
|
||||
compact(rejector: (value: any) => boolean): ArraySchema<T>;
|
||||
compact(rejector?: (value: any) => boolean): ArraySchema<T>;
|
||||
}
|
||||
|
||||
export interface ObjectSchemaConstructor {
|
||||
|
||||
Reference in New Issue
Block a user