UseCancelablePromiseOptions
Home > @gooddata/sdk-ui > UseCancelablePromiseOptions
UseCancelablePromiseOptions type
Options for the useCancelablePromise() hook.
Signature:
export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelablePromiseCallbacks<TResult, TError> & {
promise: (() => Promise<TResult>) | undefined | null;
};
References: UseCancelablePromiseCallbacks