Skip to main content
Module

x/abstruct/mod.ts>Err

Abstract structure for JavaScript data validation
Latest
class Err
extends Container<E>
import { Err } from "https://deno.land/x/abstruct@1.0.0/mod.ts";

Result of Error API.

Properties

type: "error"

Node type.

Methods

isErr(): this is Err<E>

Whether the Result is Err or not.

isOk(): this is Ok<never>

Whether the Result is Ok or not.