Skip to main content
Module

x/capi/mod.ts>$.transform

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

Type Parameters

TI
UI
optional
TO = TI
optional
UO = UI

Parameters

props: { $base: Codec<TI, TO>; encode: (value: UI) => TI; decode: (value: TO) => UO; assert?: (this: Codec<UI, UO>, assert: AssertState) => void; }