Skip to content

Commit 7fe6fed

Browse files
committed
1 parent 75f3cbc commit 7fe6fed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scrapbox.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,18 @@ export type UserResponse =
153153
emacsBinding: boolean;
154154
};
155155
} & UserInfo);
156+
157+
/** the response type of https://scrapbox.io/api/pages/:projectname/search/titles */
158+
export type LinksResponse =
159+
| NotFoundError
160+
| NotMemberError
161+
| {
162+
message: "Invalid pageId";
163+
}
164+
| {
165+
/** page id */ id: string;
166+
/** page title */ title: string;
167+
/** 画像が存在するかどうか */ hasIcon: boolean;
168+
/** ページの更新日時 */ updated: number;
169+
/** ページ内のリンク */ links: string[];
170+
}[];

0 commit comments

Comments
 (0)