Skip to content

Commit f243ccc

Browse files
committed
feat(search): Keep up with changes about search
1 parent c10957f commit f243ccc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

response.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,18 @@ export interface FoundPage {
459459
lines: string[];
460460
}
461461

462+
/** the response type of /api/pages/:projectname/search/files */
463+
export interface FileSearchResult
464+
extends Omit<SearchResult, "field" | "pages"> {
465+
/** 見つかったページ */
466+
pages: FoundPageByFile[];
467+
}
468+
469+
/** /api/pages/:projectname/search/files で見つかったページ */
470+
export interface FoundPageByFile extends FoundPage {
471+
file: string;
472+
}
473+
462474
/** the response type of /api/projects/search/query and /api/projects/search/watch-list */
463475
export interface ProjectSearchResult {
464476
/** 検索文字列 */

0 commit comments

Comments
 (0)