UNPKG

vue-tweet-pure

Version:

A Vue 3 component for embedding tweets in your Vue.js applications.

19 lines (18 loc) 469 B
import type { Tweet } from './types'; export declare class TwitterApiError extends Error { status: number; data: unknown; constructor({ message, status, data }: { message: string; status: number; data: unknown; }); } /** * Fetches a tweet from the Twitter syndication API. */ export declare function fetchTweet(id: string, fetchOptions?: RequestInit): Promise<{ data?: Tweet; tombstone?: true; notFound?: true; }>;