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

x/polkadot/mod.ts>typesCodec.bool

Package publishing for deno.land/x/polkadot
Go to Latest
class typesCodec.bool
implements Codec
extends Boolean
import { typesCodec } from "https://deno.land/x/polkadot@0.2.27/mod.ts";
const { bool } = typesCodec;

Constructors

new
bool(registry: Registry, value?:
| bool
| AnyBool
| Uint8Array
| number
)

Properties

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

Methods

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