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

x/polkadot/types/create/createType.ts>createType

Package publishing for deno.land/x/polkadot
Go to Latest
function createType
import { createType } from "https://deno.land/x/polkadot@0.2.14/types/create/createType.ts";

Create an instance of a type with a given params.

Type Parameters

optional
T extends Codec = Codec
optional
K extends string = string

Parameters

registry: Registry
  • A recognizable string representing the type to create an instance from
type: K
  • The value to instantiate the type with
...params: unknown[]