• Converts into a string for debug. It is not safe for serialization.

    Type Parameters

    • E

    • T

    Parameters

    Returns string

    The string form.

    Examples

    import { err, ok, toString } from "./result.ts";
    import { assertEquals } from "../deps.ts";

    assertEquals(toString(ok(24)), "ok(24)");
    assertEquals(toString(err("hoge")), "err(hoge)");

Generated using TypeDoc