vtils

Home > validator > yup > array

yup.array() function

Signature:

export declare function array<T extends any = any>(type?: GetSchema<T> | ((schema: ArraySchema<T>) => ArraySchema<T>)): ArraySchema<T>;

Parameters

Parameter Type Description
type GetSchema<T> | ((schema: ArraySchema<T>) => ArraySchema<T>) (Optional)

Returns:

ArraySchema<T>