vtils

Home > validator > yup > ObjectSchema > shape

yup.ObjectSchema.shape() method

Signature:

shape(fields: GetObjectSchema<T>, noSortEdges?: Array<[string, string]>): this;

Parameters

Parameter Type Description
fields GetObjectSchema<T>  
noSortEdges Array<[string, string]> (Optional)

Returns:

this