FuncClass
Defined in: packages/candid/src/idl.ts:1521
Represents an IDL function reference.
Argument types.
Return types.
Function annotations.
Extends
Section titled “Extends”ConstructType
<[Principal
,string
]>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FuncClass(
argTypes
,retTypes
,annotations
):FuncClass
Defined in: packages/candid/src/idl.ts:1529
Parameters
Section titled “Parameters”argTypes
Section titled “argTypes”Type
<any
>[]
retTypes
Section titled “retTypes”Type
<any
>[]
annotations
Section titled “annotations”string
[] = []
Returns
Section titled “Returns”FuncClass
Overrides
Section titled “Overrides”Properties
Section titled “Properties”annotations
Section titled “annotations”annotations:
string
[] =[]
Defined in: packages/candid/src/idl.ts:1532
argTypes
Section titled “argTypes”argTypes:
Type
<any
>[]
Defined in: packages/candid/src/idl.ts:1530
retTypes
Section titled “retTypes”retTypes:
Type
<any
>[]
Defined in: packages/candid/src/idl.ts:1531
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get name():
string
Defined in: packages/candid/src/idl.ts:1592
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”Methods
Section titled “Methods”_buildTypeTableImpl()
Section titled “_buildTypeTableImpl()”_buildTypeTableImpl(
T
):void
Defined in: packages/candid/src/idl.ts:1556
Parameters
Section titled “Parameters”TypeTable
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”ConstructType
._buildTypeTableImpl
accept()
Section titled “accept()”accept<
D
,R
>(v
,d
):R
Defined in: packages/candid/src/idl.ts:1537
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
):ConstructType
<[Principal
,string
]>
Defined in: packages/candid/src/idl.ts:239
Parameters
Section titled “Parameters”Returns
Section titled “Returns”ConstructType
<[Principal
, string
]>
Inherited from
Section titled “Inherited from”covariant()
Section titled “covariant()”covariant(
x
):x is [Principal, string]
Defined in: packages/candid/src/idl.ts:1540
Assert that JavaScript’s x
is the proper type represented by this
Type.
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”x is [Principal, string]
Overrides
Section titled “Overrides”decodeValue()
Section titled “decodeValue()”decodeValue(
b
,t
): [Principal
,string
]
Defined in: packages/candid/src/idl.ts:1571
Parameters
Section titled “Parameters”Returns
Section titled “Returns”[Principal
, string
]
Overrides
Section titled “Overrides”display()
Section titled “display()”display():
string
Defined in: packages/candid/src/idl.ts:1603
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”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
>
Inherited from
Section titled “Inherited from”encodeValue()
Section titled “encodeValue()”encodeValue(
__namedParameters
):Uint8Array
<ArrayBufferLike
>
Defined in: packages/candid/src/idl.ts:1546
Internal
Encode the value. This needs to be public because it is used by encodeValue() from different types.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”[Principal
, string
]
Returns
Section titled “Returns”Uint8Array
<ArrayBufferLike
>
Overrides
Section titled “Overrides”valueToString()
Section titled “valueToString()”valueToString(
__namedParameters
):string
Defined in: packages/candid/src/idl.ts:1599
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”[Principal
, string
]
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”argsToString()
Section titled “argsToString()”
static
argsToString(types
,v
):string
Defined in: packages/candid/src/idl.ts:1522
Parameters
Section titled “Parameters”Type
<any
>[]
any
[]
Returns
Section titled “Returns”string