ListPages
import type { ListPages } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.24.3/mod.ts";
interface ListPages {
(project: string, options?: ListPagesOption): Promise<Result<PageList, NotFoundError | NotLoggedInError | NotMemberError>>;
fromResponse: (res: Response) => Promise<Result<PageList, NotFoundError | NotLoggedInError | NotMemberError>>;
toRequest: (project: string, options?: ListPagesOption) => Request;
}§Call Signatures
§
(project: string, options?: ListPagesOption): Promise<Result<PageList, NotFoundError | NotLoggedInError | NotMemberError>>
[src]§Properties
§
fromResponse: (res: Response) => Promise<Result<PageList, NotFoundError | NotLoggedInError | NotMemberError>>
[src]帰ってきた応答からページのJSONデータを取得する
§
toRequest: (project: string, options?: ListPagesOption) => Request
[src]/api/pages/:project の要求を組み立てる