vtils

Home > validator > yup > ref

yup.ref() function

Signature:

export declare function ref<X, T extends X>(path: string, map?: NonNullable<RefOptions<T>['map']>): Ref<X>;

Parameters

Parameter Type Description
path string  
map NonNullable<RefOptions<T>[‘map’]> (Optional)

Returns:

Ref<X>