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