Home > validator > yup > string
Signature:
export declare function string<T extends string = string>(payload?: (schema: StringSchema<T>) => StringSchema<T>): StringSchema<T>;
Parameter | Type | Description |
---|---|---|
payload | (schema: StringSchema<T>) => StringSchema<T> | (Optional) |
Returns:
StringSchema<T>