fix: narrow tweet results
This commit is contained in:
@@ -181,11 +181,15 @@ type GraphqlTweetResult = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface TweetResult {
|
export type TweetResult =
|
||||||
success: boolean;
|
| {
|
||||||
tweetId?: string;
|
success: true;
|
||||||
error?: string;
|
tweetId: string;
|
||||||
}
|
}
|
||||||
|
| {
|
||||||
|
success: false;
|
||||||
|
error: string;
|
||||||
|
};
|
||||||
|
|
||||||
export interface UploadMediaResult {
|
export interface UploadMediaResult {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user