Interface: InvokeFunction<TArgs, TReturn>
@fuel-ts/program.InvokeFunction
Represents a function that can be invoked.
Type parameters
Name | Type | Description |
---|---|---|
TArgs | extends any [] = any [] | Type of the function's arguments. |
TReturn | any | Type of the function's return value. |
Callable
InvokeFunction
▸ InvokeFunction(...args
): FunctionInvocationScope
<TArgs
, TReturn
>
Parameters
Name | Type |
---|---|
...args | TArgs |
Returns
FunctionInvocationScope
<TArgs
, TReturn
>
Defined in
types.ts:71
Properties
isReadOnly
• isReadOnly: () => boolean
Checks if the function is read-only i.e. it only reads from storage, does not write to it.
Type declaration
▸ (): boolean
Returns
boolean
Defined in
types.ts:77