Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SearchResult

import type { SearchResult } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.14.10/deps/scrapbox-rest.ts";

the response type of /api/pages/:projectname/search/titles

interface SearchResult {
backend: string;
count: number;
existsExactTitleMatch: boolean;
limit: number;
pages: {
id: PageId;
title: string;
image: string;
words: string[];
lines: string[];
}
[]
;
projectName: string;
query: SearchQuery;
searchQuery: string;
}

§Properties

§
backend: string
[src]

全文検索エンジンの名前

§
count: number
[src]

検索件数

§
existsExactTitleMatch: boolean
[src]

検索文字列と完全一致するタイトルが見つかったらtrue

§
limit: number
[src]

検索件数の上限

§
pages: {
id: PageId;
title: string;
image: string;
words: string[];
lines: string[];
}
[]
[src]

見つかったページ

§
projectName: string
[src]

検索したprojectの名前

§
query: SearchQuery
[src]

検索語句

§
searchQuery: string
[src]

検索文字列