Home > validator > yup > object
Signature:
export declare function object<T extends {} = {}>(fields?: GetObjectSchema<T> | ((schema: ObjectSchema<T>) => ObjectSchema<T>)): ObjectSchema<T>;
Parameter | Type | Description |
---|---|---|
fields | GetObjectSchema<T> | ((schema: ObjectSchema<T>) => ObjectSchema<T>) | (Optional) |
Returns:
ObjectSchema<T>