vue-tweet-pure
Version:
A Vue 3 component for embedding tweets in your Vue.js applications.
12 lines (11 loc) • 579 B
TypeScript
import type { Tweet } from '../api';
/** @internal */
export declare function clearCache(): void;
/** @internal */
export declare function cachedFetcher(url: string, fetchOptions?: RequestInit): Promise<Tweet | null>;
export declare function useTweet(id: string, apiUrl: string, fetchOptions?: RequestInit): {
isLoading: import("vue").Ref<boolean, boolean>;
data: import("vue").Ref<Tweet | null | undefined, Tweet | null | undefined>;
error: import("vue").Ref<Error | null, Error | null>;
};
export declare function useMounted(): import("vue").Ref<boolean, boolean>;