Skip to content

UnknownClass

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

Represents an IDL Unknown, a placeholder type for deserialization only. When decoding a value as Unknown, all fields will be retained but the names are only available in hashed form. A deserialized unknown will offer it’s actual type by calling the type() function. Unknown cannot be serialized and attempting to do so will throw an error.

new UnknownClass(): UnknownClass

UnknownClass

Type.constructor

get name(): string

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

string

Type.name

protected _buildTypeTableImpl(): void

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

void

Type._buildTypeTableImpl


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

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

D

R

Visitor<D, R>

D

R

Type.accept


buildTypeTable(typeTable): void

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

TypeTable

void

Type.buildTypeTable


checkType(_t): Type

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

Type

Type

Type.checkType


covariant(x): x is any

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

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

any

x is any

Type.covariant


decodeValue(b, t): any

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

PipeArrayBuffer

Type

any

Type.decodeValue


display(): string

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

string

Type.display


encodeType(): never

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

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

never

Type.encodeType


encodeValue(): never

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

Internal

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

never

Type.encodeValue


valueToString(): never

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

never

Type.valueToString