Skip to main content
Module

x/capi/mod.ts>$.Codec#assert

[WIP] A framework for crafting interactions with Substrate chains
Latest
method $.Codec.prototype.assert
Re-export
import { $ } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";
const { Codec } = $;

Requires the codec to have an explicit type annotation; if it doesn't, use $.assert instead.

Parameters

value: unknown

Returns

asserts value is I