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

makeError

import { makeError } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.24.3/mod.ts";

失敗した要求からエラー情報を取り出す

const makeError: <T extends ErrorLike>(res: Response) => Promise<{
ok: false;
value: T;
}
>
;