Skip to content

NullClass

Defined in: packages/candid/src/idl.ts:449

Represents an IDL Null

new NullClass(): NullClass

NullClass

PrimitiveType.constructor

get name(): string

Defined in: packages/candid/src/idl.ts:480

string

PrimitiveType.name


get typeName(): IdlTypeName

Defined in: packages/candid/src/idl.ts:450

IdlTypeName

PrimitiveType.typeName

_buildTypeTableImpl(_typeTable): void

Defined in: packages/candid/src/idl.ts:257

TypeTable

void

PrimitiveType._buildTypeTableImpl


accept<D, R>(v, d): R

Defined in: packages/candid/src/idl.ts:458

D

R

Visitor<D, R>

D

R

PrimitiveType.accept


buildTypeTable(typeTable): void

Defined in: packages/candid/src/idl.ts:217

TypeTable

void

PrimitiveType.buildTypeTable


checkType(t): Type

Defined in: packages/candid/src/idl.ts:250

Type

Type

PrimitiveType.checkType


covariant(x): x is null

Defined in: packages/candid/src/idl.ts:462

Assert that JavaScript’s x is the proper type represented by this Type.

any

x is null

PrimitiveType.covariant


decodeValue(_b, t): null

Defined in: packages/candid/src/idl.ts:475

PipeArrayBuffer

Type

null

PrimitiveType.decodeValue


display(): string

Defined in: packages/candid/src/idl.ts:208

string

PrimitiveType.display


encodeType(): Uint8Array

Defined in: packages/candid/src/idl.ts:471

Implement I in the IDL spec. Encode this type for the type table.

Uint8Array

PrimitiveType.encodeType


encodeValue(): Uint8Array

Defined in: packages/candid/src/idl.ts:467

Internal

Encode the value. This needs to be public because it is used by encodeValue() from different types.

Uint8Array

PrimitiveType.encodeValue


valueToString(x): string

Defined in: packages/candid/src/idl.ts:212

null

string

PrimitiveType.valueToString


static [hasInstance](instance): instance is NullClass

Defined in: packages/candid/src/idl.ts:454

any

instance is NullClass