UNPKG

@antdv/pro-utils

Version:

@antdv/pro-utils

7 lines (6 loc) 280 B
import type { Ref } from 'vue'; export type ProRequestData<T, U = Record<string, any>> = (params: U, props: any) => Promise<T>; export declare function useFetchData<T, U = Record<string, any>>(props: { params?: U; request?: ProRequestData<T, U>; }): [Ref<T | undefined>];