chore(typings): Moved common typings to root dir

This commit is contained in:
Taso committed 2021-03-14 15:19:30 -04:00
1 parent 378830245d
commit f0c5e5101e
47 files changed
+41 -46

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
export interface NewTweet {
message: string;
images?: string;
retweet?: number;
}
export type SETTING_MENTIONS = 'mentions';
export type SETTINGS_ALL_TWEETS = 'all';
export interface Tweet extends NewTweet {
profile_name: string;
profile_id: number;
id: number;
isMine: boolean;
isLiked: boolean;
isReported: boolean;
avatar_url: string;
isRetweet: number | boolean;
isRetweetedByPlayer?: boolean;
retweetIdentifier: string;
retweetId: string;
seconds_since_tweet: number;
retweetProfileName: string;
retweetAvatarUrl: string;
createdAt: string;
updatedAt: string;
}
export interface Profile {
id: number;
profile_name: string;
identifier: string;
avatar_url?: string;
bio?: string;
location?: string;
job?: string;
createdAt: string;
updatedAt: string;
}