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

Result

import type { Result } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.14.5/rest/util.ts";

正常値と異常値を格納する型

type Result<T, E> = {
ok: true;
value: T;
}
| {
ok: false;
value: E;
}
;

§Type Parameters

§Type

§
{
ok: true;
value: T;
}
| {
ok: false;
value: E;
}
[src]