@scalar/api-client
Version:
the open source API testing client
39 lines • 928 B
TypeScript
/**
* 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