vtils

Home > validator > yup > object

yup.object() function

Signature:

export declare function object<T extends {} = {}>(fields?: GetObjectSchema<T> | ((schema: ObjectSchema<T>) => ObjectSchema<T>)): ObjectSchema<T>;

Parameters

Parameter Type Description
fields GetObjectSchema<T> | ((schema: ObjectSchema<T>) => ObjectSchema<T>) (Optional)

Returns:

ObjectSchema<T>