Skip to content

FuncClass

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

Represents an IDL function reference.

Argument types.

Return types.

Function annotations.

new FuncClass(argTypes, retTypes, annotations): FuncClass

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

Type<any>[]

Type<any>[]

string[] = []

FuncClass

ConstructType.constructor

annotations: string[] = []

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


argTypes: Type<any>[]

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


retTypes: Type<any>[]

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

get name(): string

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

string

ConstructType.name


get typeName(): IdlTypeName

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

IdlTypeName

ConstructType.typeName

_buildTypeTableImpl(T): void

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

TypeTable

void

ConstructType._buildTypeTableImpl


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

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

D

R

Visitor<D, R>

D

R

ConstructType.accept


buildTypeTable(typeTable): void

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

TypeTable

void

ConstructType.buildTypeTable


checkType(t): ConstructType<[Principal, string]>

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

Type

ConstructType<[Principal, string]>

ConstructType.checkType


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

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

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

PipeArrayBuffer

Type

[Principal, string]

ConstructType.decodeValue


display(): string

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

string

ConstructType.display


encodeType(typeTable): Uint8Array<ArrayBufferLike>

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

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

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

[Principal, string]

string

ConstructType.valueToString


static [hasInstance](instance): instance is FuncClass

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

any

instance is FuncClass


static argsToString(types, v): string

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

Type<any>[]

any[]

string