vtils

Home > utils > CreateSubmitResult

CreateSubmitResult type

Signature:

export declare type CreateSubmitResult<T = string> = (<TResult>(action: (payload: SubmitActionPayload<T>) => Promise<TResult>) => Promise<TResult>) & Pick<SubmitActionPayload<T>, 'fail' | 'success'>;

References: SubmitActionPayload