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

x/polkadot/types/codec/index.ts>Vec

Package publishing for deno.land/x/polkadot
Go to Latest
class Vec
extends AbstractArray<T>
import { Vec } from "https://deno.land/x/polkadot@0.2.16/types/codec/index.ts";

Constructors

new
Vec(
registry: Registry,
Type: CodecClass<T> | string,
value?: Uint8Array | HexString | unknown[],
unnamed 3?: Options<T>,
)

Type Parameters

T extends Codec

Properties

readonly
optional
initialU8aLength: number
readonly
Type: string

Methods

indexOf(_other?: unknown): number
toRawType(): string

Static Methods

with<O extends Codec>(Type: CodecClass<O> | string): CodecClass<Vec<O>>