Skip to content

RecClass

Defined in: packages/core/src/candid/idl.ts:1589

Represents a reference to an IDL type, used for defining recursive data types.

T = any

new RecClass<T>(): RecClass<T>

RecClass<T>

ConstructType.constructor

get name(): string

Defined in: packages/core/src/candid/idl.ts:1645

string

ConstructType.name


get typeName(): IdlTypeName

Defined in: packages/core/src/candid/idl.ts:1590

IdlTypeName

ConstructType.typeName

_buildTypeTableImpl(typeTable): void

Defined in: packages/core/src/candid/idl.ts:1629

TypeTable

void

ConstructType._buildTypeTableImpl


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

Defined in: packages/core/src/candid/idl.ts:1602

D

R

Visitor<D, R>

D

R

ConstructType.accept


buildTypeTable(typeTable): void

Defined in: packages/core/src/candid/idl.ts:247

TypeTable

void

ConstructType.buildTypeTable


checkType(t): ConstructType<T>

Defined in: packages/core/src/candid/idl.ts:294

Type

ConstructType<T>

ConstructType.checkType


covariant(x): x is T

Defined in: packages/core/src/candid/idl.ts:1617

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

any

x is T

ConstructType.covariant


decodeValue(b, t): T

Defined in: packages/core/src/candid/idl.ts:1638

PipeArrayBuffer

Type

T

ConstructType.decodeValue


display(): string

Defined in: packages/core/src/candid/idl.ts:1649

string

ConstructType.display


encodeType(typeTable): Uint8Array<ArrayBufferLike>

Defined in: packages/core/src/candid/idl.ts:304

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

TypeTable

Uint8Array<ArrayBufferLike>

ConstructType.encodeType


encodeValue(x): Uint8Array<ArrayBufferLike>

Defined in: packages/core/src/candid/idl.ts:1622

Internal

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

T

Uint8Array<ArrayBufferLike>

ConstructType.encodeValue


fill(t): void

Defined in: packages/core/src/candid/idl.ts:1609

ConstructType<T>

void


getType(): undefined | ConstructType<T>

Defined in: packages/core/src/candid/idl.ts:1613

undefined | ConstructType<T>


valueToString(x): string

Defined in: packages/core/src/candid/idl.ts:1656

T

string

ConstructType.valueToString


static [hasInstance](instance): instance is RecClass<any>

Defined in: packages/core/src/candid/idl.ts:1598

any

instance is RecClass<any>