Skip to content

Commit 288564f

Browse files
authored
Merge pull request #20 from takker99/add-tweet
✨ Implement the response type of /api/embed-text/twitter
2 parents bbae9fd + 1297c4a commit 288564f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

api/response.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,15 @@ export interface ImportedData<hasMetadata extends true | false = false> {
189189
/** pages importing to a project */
190190
pages: hasMetadata extends true ? ImportedPage[] : ImportedLightPage[];
191191
}
192+
193+
/** the response type of /api/embed-text/twitter */
194+
export interface TweetInfo {
195+
/** Tweet本文 */
196+
description: string;
197+
/** Tweet投稿者のuser name*/
198+
userName: string;
199+
/** Tweet投稿者の表示名 */
200+
screenName: string;
201+
/** Tweetに添付された画像 */
202+
images: string[];
203+
}

0 commit comments

Comments
 (0)