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

x/polkadot/mod.ts>typesCodec.Enum.with

Package publishing for deno.land/x/polkadot
Latest
method typesCodec.Enum.with
import { typesCodec } from "https://deno.land/x/polkadot@0.2.45/mod.ts";
const { Enum } = typesCodec;

Parameters

Types: Record<string, string | CodecClass> | Record<string, number> | string[]

Returns

EnumCodecClass<Enum>