fxtwitter-docker/src/types.d.ts
2022-07-25 11:45:07 -04:00

59 lines
No EOL
874 B
TypeScript

/* tweetTypes has all the Twitter API-related types */
type InputFlags = {
standard?: boolean;
direct?: boolean;
api?: boolean;
};
interface StatusResponse {
text?: string;
response?: Response;
}
interface Request {
params: {
[param: string]: string;
};
}
interface APIResponse {
code: number;
message: string;
tweet?: APITweet;
}
interface APITranslate {
translated_text: string;
source_language: string;
target_language: string;
}
interface APIAuthor {
name?: string;
screen_name?: string;
profile_picture_url?: string;
profile_banner_url?: string;
}
interface APIPoll {
}
interface APITweet {
id: string;
tweet: string;
text?: string;
created_at: string;
likes: number;
retweets: number;
replies: number;
quote_tweet?: APITweet;
translation?: APITranslate;
author: APIAuthor;
thumbnail: string;
}