Skip to content

Commit 29c15e2

Browse files
authored
Merge pull request #45 from takker99/icon-image
✨ s/ `hasIcon` / `image`
2 parents 8cc196a + c9970bb commit 29c15e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

response.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ export type UserResponse = GuestUser | MemberUser;
195195
/** the response type of https://scrapbox.io/api/pages/:projectname/search/titles */
196196
export interface SearchedTitle
197197
extends Pick<BasePage, "id" | "title" | "updated"> {
198-
/** 画像が存在するかどうか */
199-
hasIcon: boolean;
198+
/** thumbnail URL */
199+
image?: string;
200200

201201
/** ページ内のリンク */
202202
links: string[];

scrapbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export interface Candidate extends Pick<BasePage, "id" | "title" | "updated"> {
9797
/** true when the page has contents */
9898
exists: boolean;
9999

100-
/** whether the page contains any image */
101-
hasIcon?: boolean;
100+
/** thumbnail URL */
101+
image?: string;
102102

103103
/** lower case style of the page title */
104104
titleLc: StringLc;

0 commit comments

Comments
 (0)