Skip to content

PrincipalClass

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

Represents an IDL principal reference

new PrincipalClass(): PrincipalClass

PrincipalClass

PrimitiveType.constructor

get name(): string

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

string

PrimitiveType.name


get typeName(): IdlTypeName

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

IdlTypeName

PrimitiveType.typeName

_buildTypeTableImpl(_typeTable): void

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

TypeTable

void

PrimitiveType._buildTypeTableImpl


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

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

D

R

Visitor<D, R>

D

R

PrimitiveType.accept


buildTypeTable(typeTable): void

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

TypeTable

void

PrimitiveType.buildTypeTable


checkType(t): Type

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

Type

Type

PrimitiveType.checkType


covariant(x): x is Principal

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

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

any

x is Principal

PrimitiveType.covariant


decodeValue(b, t): Principal

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

PipeArrayBuffer

Type

Principal

PrimitiveType.decodeValue


display(): string

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

string

PrimitiveType.display


encodeType(): Uint8Array

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

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

Uint8Array

PrimitiveType.encodeType


encodeValue(x): Uint8Array

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

Internal

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

Principal

Uint8Array

PrimitiveType.encodeValue


valueToString(x): string

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

Principal

string

PrimitiveType.valueToString


static [hasInstance](instance): instance is PrincipalClass

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

any

instance is PrincipalClass