Skip to main content
Module

x/earthstar/mod.ts>isErr

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function isErr
Re-export
import { isErr } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/mod.ts";

Check if any value is a subclass of EarthstarError (return true) or not (return false)

Parameters

x: T | Error

Returns

x is EarthstarError