Skip to main content
Version: 4.x.x

ConfigProviderOptionsType


import { ConfigProviderOptionsType } from "@hyper-fetch/react"

Description

Defined in react/src/config-provider/config-provider.types.ts:12

Preview

type ConfigProviderOptionsType<SocketResponses> = {
useCacheConfig: Partial<UseCacheOptionsType<RequestInstance>>;
useEmitter: Partial<UseEmitterOptionsType>;
useEventMessages: Partial<UseEventMessagesOptionsType<SocketResponses>>;
useFetchConfig: Partial<UseFetchOptionsType<RequestInstance>>;
useListener: Partial<UseListenerOptionsType>;
useQueueConfig: Partial<UseQueueOptionsType>;
useSubmitConfig: Partial<UseSubmitOptionsType<RequestInstance>>;
}

Structure

{
useCacheConfig: Partial<UseCacheOptionsType<RequestInstance>>;
useEmitter: Partial<UseEmitterOptionsType>;
useEventMessages: Partial<UseEventMessagesOptionsType<SocketResponses>>;
useFetchConfig: Partial<UseFetchOptionsType<RequestInstance>>;
useListener: Partial<UseListenerOptionsType>;
useQueueConfig: Partial<UseQueueOptionsType>;
useSubmitConfig: Partial<UseSubmitOptionsType<RequestInstance>>;
}