From c9970bb191d01ad75adb33b4514bba64a5f24ed3 Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Mon, 14 Aug 2023 03:48:00 +0900 Subject: [PATCH] :sparkles: s/hasIcon/image --- response.ts | 4 ++-- scrapbox.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/response.ts b/response.ts index a4e14e9..1a4597e 100644 --- a/response.ts +++ b/response.ts @@ -195,8 +195,8 @@ export type UserResponse = GuestUser | MemberUser; /** the response type of https://scrapbox.io/api/pages/:projectname/search/titles */ export interface SearchedTitle extends Pick { - /** 画像が存在するかどうか */ - hasIcon: boolean; + /** thumbnail URL */ + image?: string; /** ページ内のリンク */ links: string[]; diff --git a/scrapbox.ts b/scrapbox.ts index 4e26b40..a40e24d 100644 --- a/scrapbox.ts +++ b/scrapbox.ts @@ -97,8 +97,8 @@ export interface Candidate extends Pick { /** true when the page has contents */ exists: boolean; - /** whether the page contains any image */ - hasIcon?: boolean; + /** thumbnail URL */ + image?: string; /** lower case style of the page title */ titleLc: StringLc;