UNPKG

@scalar/api-client

Version:

the open source API testing client

46 lines 1.1 kB
export type PrefetchResult = { state: 'idle' | 'loading'; content: string | null; input: string | null; url: string | null; error: string | null; }; /** * Vue composable for URL prefetching */ export declare function useUrlPrefetcher(): { prefetchResult: { state: "idle" | "loading"; content: string | null; input: string | null; url: string | null; error: string | null; }; prefetchUrl: (input: string | null, proxyUrl?: string) => Promise<{ state: string; content: null; url: null; input: string | null; error: null; } | { state: string; content: string; url: null; error: null; input?: undefined; } | { state: string; content: string; url: string; error: null; input?: undefined; } | { state: string; content: null; url: null; input: string; error: any; }>; resetPrefetchResult: () => void; }; //# sourceMappingURL=useUrlPrefetcher.d.ts.map