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