Skip to main content
Module

x/capi/codegen/TypeCodegen.ts>TypeCodegen

[WIP] A framework for crafting interactions with Substrate chains
Latest
class TypeCodegen
import { TypeCodegen } from "https://deno.land/x/capi@v0.1.1-beta.1/codegen/TypeCodegen.ts";

Constructors

new
TypeCodegen(codecCodegen: CodecCodegen, types: Record<string, $.AnyCodec>)

Properties

declVisitor
extractObjectFields
isField
isTuple
nativeVisitor
typeNames: Map<$.AnyCodec, string>

Methods

native(codec: $.AnyCodec): string
print(value: unknown): string
write(files: Map<string, string>)