BoolClass
Defined in: packages/candid/src/idl.ts:362
Represents an IDL Bool
Extends
Section titled “Extends”PrimitiveType
<boolean
>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BoolClass():
BoolClass
Returns
Section titled “Returns”BoolClass
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get name():
string
Defined in: packages/candid/src/idl.ts:392
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”Methods
Section titled “Methods”_buildTypeTableImpl()
Section titled “_buildTypeTableImpl()”_buildTypeTableImpl(
_typeTable
):void
Defined in: packages/candid/src/idl.ts:232
Parameters
Section titled “Parameters”_typeTable
Section titled “_typeTable”TypeTable
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”PrimitiveType
._buildTypeTableImpl
accept()
Section titled “accept()”accept<
D
,R
>(v
,d
):R
Defined in: packages/candid/src/idl.ts:363
Type Parameters
Section titled “Type Parameters”D
R
Parameters
Section titled “Parameters”Visitor
<D
, R
>
D
Returns
Section titled “Returns”R
Overrides
Section titled “Overrides”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
):Type
Defined in: packages/candid/src/idl.ts:225
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”covariant()
Section titled “covariant()”covariant(
x
):x is boolean
Defined in: packages/candid/src/idl.ts:367
Assert that JavaScript’s x
is the proper type represented by this
Type.
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”x is boolean
Overrides
Section titled “Overrides”decodeValue()
Section titled “decodeValue()”decodeValue(
b
,t
):boolean
Defined in: packages/candid/src/idl.ts:380
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean
Overrides
Section titled “Overrides”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():
Uint8Array
Defined in: packages/candid/src/idl.ts:376
Implement I
in the IDL spec.
Encode this type for the type table.
Returns
Section titled “Returns”Uint8Array
Overrides
Section titled “Overrides”encodeValue()
Section titled “encodeValue()”encodeValue(
x
):Uint8Array
Defined in: packages/candid/src/idl.ts:372
Internal
Encode the value. This needs to be public because it is used by encodeValue() from different types.
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Uint8Array
Overrides
Section titled “Overrides”valueToString()
Section titled “valueToString()”valueToString(
x
):string
Defined in: packages/candid/src/idl.ts:187
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”string