Skip to content

FuncClass

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

Represents an IDL function reference.

Argument types.

Return types.

Function annotations.

new FuncClass(argTypes, retTypes, annotations): FuncClass

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

Type<any>[]

Type<any>[]

string[] = []

FuncClass

ConstructType.constructor

annotations: string[] = []

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


argTypes: Type<any>[]

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


retTypes: Type<any>[]

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

get name(): string

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

string

ConstructType.name

_buildTypeTableImpl(T): void

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

TypeTable

void

ConstructType._buildTypeTableImpl


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

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

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, string]>

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

Type

ConstructType<[Principal, string]>

ConstructType.checkType


covariant(x): x is [Principal, string]

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

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

any

x is [Principal, string]

ConstructType.covariant


decodeValue(b, t): [Principal, string]

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

PipeArrayBuffer

Type

[Principal, string]

ConstructType.decodeValue


display(): string

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

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(__namedParameters): Uint8Array<ArrayBufferLike>

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

Internal

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

[Principal, string]

Uint8Array<ArrayBufferLike>

ConstructType.encodeValue


valueToString(__namedParameters): string

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

[Principal, string]

string

ConstructType.valueToString


static argsToString(types, v): string

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

Type<any>[]

any[]

string