swr-vue
Version:
Vue composables for Data fetching
6 lines (5 loc) • 383 B
TypeScript
import { SWRConfig } from '../../types';
export declare const mergeConfig: <T extends Partial<SWRConfig<any, any>>, D extends Partial<SWRConfig<any, any>>>(fallbackConfig: T, config: D) => T & D & {
onSuccess: ((data: any, key: string, config: SWRConfig<any, any>) => void) | undefined;
onError: ((err: any, key: string, config: SWRConfig<any, any>) => void) | undefined;
};