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