Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/capi/mod.ts>$.AssertState

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

Constructors

new
AssertState(
value: unknown,
pathPart?: string,
parent?: AssertState,
)

Properties

readonly
path: string

Methods

bigint(
codec: AnyCodec,
min: bigint,
max: bigint,
)
equals(
codec: AnyCodec,
value: unknown,
label?,
)
instanceof(codec: AnyCodec, ctor: new (...args: any) => unknown)
integer(
codec: AnyCodec,
min: number,
max: number,
)
key(codec: AnyCodec, key: keyof any)
typeof<K extends keyof TypeofMap>(codec: AnyCodec, type: K)