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

x/capi/mod.ts>$.field

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

Type Parameters

K extends keyof any
VI
VO

Parameters

key: K
$value: Codec<VI, VO>

Returns

Codec<Expand<Readonly<Record<K, VI>>>, Expand<Record<K, VO>>>