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