ConstructType
Defined in: packages/candid/src/idl.ts:238
Represents an IDL type.
Extends
Section titled “Extends”Type
<T
>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”T
= any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ConstructType<
T
>():ConstructType
<T
>
Returns
Section titled “Returns”ConstructType
<T
>
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”
abstract
readonly
name:string
Defined in: packages/candid/src/idl.ts:179
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”_buildTypeTableImpl()
Section titled “_buildTypeTableImpl()”
abstract
protected
_buildTypeTableImpl(typeTable
):void
Defined in: packages/candid/src/idl.ts:221
Parameters
Section titled “Parameters”typeTable
Section titled “typeTable”TypeTable
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”accept()
Section titled “accept()”
abstract
accept<D
,R
>(v
,d
):R
Defined in: packages/candid/src/idl.ts:180
Type Parameters
Section titled “Type Parameters”D
R
Parameters
Section titled “Parameters”Visitor
<D
, R
>
D
Returns
Section titled “Returns”R
Inherited from
Section titled “Inherited from”buildTypeTable()
Section titled “buildTypeTable()”buildTypeTable(
typeTable
):void
Defined in: packages/candid/src/idl.ts:192
Parameters
Section titled “Parameters”typeTable
Section titled “typeTable”TypeTable
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”checkType()
Section titled “checkType()”checkType(
t
):ConstructType
<T
>
Defined in: packages/candid/src/idl.ts:239
Parameters
Section titled “Parameters”Returns
Section titled “Returns”ConstructType
<T
>
Overrides
Section titled “Overrides”covariant()
Section titled “covariant()”
abstract
covariant(x
):x is T
Defined in: packages/candid/src/idl.ts:202
Assert that JavaScript’s x
is the proper type represented by this
Type.
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”x is T
Inherited from
Section titled “Inherited from”decodeValue()
Section titled “decodeValue()”
abstract
decodeValue(x
,t
):T
Defined in: packages/candid/src/idl.ts:219
Parameters
Section titled “Parameters”Returns
Section titled “Returns”T
Inherited from
Section titled “Inherited from”display()
Section titled “display()”display():
string
Defined in: packages/candid/src/idl.ts:183
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”encodeType()
Section titled “encodeType()”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.
Parameters
Section titled “Parameters”typeTable
Section titled “typeTable”TypeTable
Returns
Section titled “Returns”Uint8Array
<ArrayBufferLike
>
Overrides
Section titled “Overrides”encodeValue()
Section titled “encodeValue()”
abstract
encodeValue(x
):Uint8Array
Defined in: packages/candid/src/idl.ts:209
Internal
Encode the value. This needs to be public because it is used by encodeValue() from different types.
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”Uint8Array
Inherited from
Section titled “Inherited from”valueToString()
Section titled “valueToString()”valueToString(
x
):string
Defined in: packages/candid/src/idl.ts:187
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”string