BoolClass
Defined in: packages/candid/src/idl.ts:403
Represents an IDL Bool
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:441
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”typeName
Section titled “typeName”Get Signature
Section titled “Get Signature”get typeName():
IdlTypeName
Defined in: packages/candid/src/idl.ts:404
Returns
Section titled “Returns”IdlTypeName
Overrides
Section titled “Overrides”Methods
Section titled “Methods”_buildTypeTableImpl()
Section titled “_buildTypeTableImpl()”_buildTypeTableImpl(
_typeTable
):void
Defined in: packages/candid/src/idl.ts:257
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:412
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:217
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:250
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:416
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:429
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:208
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”encodeType()
Section titled “encodeType()”encodeType():
Uint8Array
Defined in: packages/candid/src/idl.ts:425
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:421
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:212
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”[hasInstance]()
Section titled “[hasInstance]()”
static
[hasInstance](instance
):instance is BoolClass
Defined in: packages/candid/src/idl.ts:408
Parameters
Section titled “Parameters”instance
Section titled “instance”any
Returns
Section titled “Returns”instance is BoolClass