Home > validator > yup > array
Signature:
export declare function array<T extends any = any>(type?: GetSchema<T> | ((schema: ArraySchema<T>) => ArraySchema<T>)): ArraySchema<T>;
Parameter | Type | Description |
---|---|---|
type | GetSchema<T> | ((schema: ArraySchema<T>) => ArraySchema<T>) | (Optional) |
Returns:
ArraySchema<T>