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

x/polkadot/types-codec/native/Text.ts>Text

Package publishing for deno.land/x/polkadot
Go to Latest
class Text
implements IText
extends String
import { Text } from "https://deno.land/x/polkadot@0.2.28/types-codec/native/Text.ts";

Constructors

new
Text(registry: Registry, value?:
| null
| AnyString
| AnyU8a
| { toString: () => string; }
)

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
optional
initialU8aLength: number
readonly
isEmpty: boolean
optional
isStorageFallback: boolean
readonly
length: number
readonly
registry: Registry

Methods

eq(other?: unknown): boolean
inspect(): Inspect
setOverride(override: string): void
toHex(): HexString
toHuman(): string
toJSON(): string
toPrimitive(): string
toRawType(): string
toString(): string
toU8a(isBare?: boolean): Uint8Array