vtils

Home > validator > yup > string

yup.string() function

Signature:

export declare function string<T extends string = string>(payload?: (schema: StringSchema<T>) => StringSchema<T>): StringSchema<T>;

Parameters

Parameter Type Description
payload (schema: StringSchema<T>) => StringSchema<T> (Optional)

Returns:

StringSchema<T>