Skip to content

ServiceClass

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

Represents an IDL type.

new ServiceClass(fields): ServiceClass

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

Record<string, FuncClass>

ServiceClass

ConstructType.constructor

readonly _fields: [string, FuncClass][]

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

get name(): string

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

string

ConstructType.name

_buildTypeTableImpl(T): void

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

TypeTable

void

ConstructType._buildTypeTableImpl


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

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

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<Principal>

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

Type

ConstructType<Principal>

ConstructType.checkType


covariant(x): x is Principal

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

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

any

x is Principal

ConstructType.covariant


decodeValue(b, t): Principal

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

PipeArrayBuffer

Type

Principal

ConstructType.decodeValue


display(): string

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

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:1645

Internal

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

Principal

Uint8Array

ConstructType.encodeValue


fieldsAsObject(): Record<string, Type<any>>

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

Record<string, Type<any>>


valueToString(x): string

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

Principal

string

ConstructType.valueToString