-
Notifications
You must be signed in to change notification settings - Fork 77
/
worker-configuration.d.ts
69 lines (67 loc) · 1.57 KB
/
worker-configuration.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Generated by Wrangler
// After adding bindings to `wrangler.toml`, regenerate this interface via `npm run cf-typegen`
interface Env {
BROWSER: DurableObjectNamespace;
MYBROWSER: BrowserWorker;
MD_CACHE: KVNamespace;
RATELIMITER: any;
AI: Ai;
BACKEND_SECURITY_TOKEN: string;
}
interface TweetBase {
/**
* Language code of the tweet. E.g "en", "es".
*/
lang: string;
/**
* Creation date of the tweet in the format ISO 8601.
*/
created_at: string;
/**
* Text range of the tweet text.
*/
display_text_range: Indices;
/**
* All the entities that are part of the tweet. Like hashtags, mentions, urls, etc.
*/
entities: TweetEntities;
/**
* The unique identifier of the tweet.
*/
id_str: string;
/**
* The tweet text, including the raw text from the entities.
*/
text: string;
/**
* Information about the user who posted the tweet.
*/
user: TweetUser;
/**
* Edit information about the tweet.
*/
edit_control: TweetEditControl;
isEdited: boolean;
isStaleEdit: boolean;
}
/**
* A tweet as returned by the the Twitter syndication API.
*/
interface Tweet extends TweetBase {
__typename: 'Tweet';
favorite_count: number;
mediaDetails?: MediaDetails[];
photos?: TweetPhoto[];
video?: TweetVideo;
conversation_count: number;
news_action_type: 'conversation';
quoted_tweet?: QuotedTweet;
in_reply_to_screen_name?: string;
in_reply_to_status_id_str?: string;
in_reply_to_user_id_str?: string;
parent?: TweetParent;
possibly_sensitive?: boolean;
}
declare const Readability: any;
declare const TurndownService: any;
declare const document: any;