fix: narrow tweet results

This commit is contained in:
Peter Steinberger
2025-12-26 22:40:45 +01:00
parent 2483e32c11
commit c16726e9d8
+8 -4
View File
@@ -181,11 +181,15 @@ type GraphqlTweetResult = {
};
};
export interface TweetResult {
success: boolean;
tweetId?: string;
error?: string;
export type TweetResult =
| {
success: true;
tweetId: string;
}
| {
success: false;
error: string;
};
export interface UploadMediaResult {
success: boolean;