mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Allow schema in array constructor
This commit is contained in:
2
types/yup/index.d.ts
vendored
2
types/yup/index.d.ts
vendored
@@ -118,7 +118,7 @@ export interface DateSchema extends Schema<Date> {
|
||||
}
|
||||
|
||||
export interface ArraySchemaConstructor {
|
||||
(): ArraySchema<{}>;
|
||||
<T>(schema?: Schema<T>): ArraySchema<T>;
|
||||
new(): ArraySchema<{}>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user