UNPKG

@sanp/ahooks-vue

Version:
8 lines (7 loc) 532 B
import { UseRequestOptions, UseRequestResult, CombineService } from './types'; export declare const RequestConfig: unique symbol; export * from './types'; export declare function useRequest<R = any, P extends any[] = any>(service: CombineService<R, P>, options: Partial<UseRequestOptions<R, P>> & { initialData: R; }): UseRequestResult<R, P>; export declare function useRequest<R = any, P extends any[] = any>(service: CombineService<R, P>, options: Partial<UseRequestOptions<R, P>>): UseRequestResult<R | undefined, P>;