Skip to content

RecordClass

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

Represents an IDL Record

mapping of function name to Type

new RecordClass(fields): RecordClass

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

Record<string, Type> = {}

RecordClass

ConstructType.constructor

readonly _fields: [string, Type<any>][]

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

get fieldsAsObject(): Record<string, Type>

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

Record<string, Type>


get name(): string

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

string

ConstructType.name

_buildTypeTableImpl(T): void

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

TypeTable

void

ConstructType._buildTypeTableImpl


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

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

D

R

Visitor<D, R>

D

R

ConstructType.accept


buildTypeTable(typeTable): void

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

TypeTable

void

ConstructType.buildTypeTable


checkType(t): ConstructType<Record<string, any>>

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

Type

ConstructType<Record<string, any>>

ConstructType.checkType


covariant(x): x is Record<string, any>

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

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

any

x is Record<string, any>

ConstructType.covariant


decodeValue(b, t): Record<string, any>

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

PipeArrayBuffer

Type

Record<string, any>

ConstructType.decodeValue


display(): string

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

string

ConstructType.display


encodeType(typeTable): Uint8Array<ArrayBufferLike>

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

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

TypeTable

Uint8Array<ArrayBufferLike>

ConstructType.encodeType


encodeValue(x): Uint8Array

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

Internal

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

Record<string, any>

Uint8Array

ConstructType.encodeValue


tryAsTuple(): null | Type<any>[]

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

null | Type<any>[]


valueToString(x): string

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

Record<string, any>

string

ConstructType.valueToString