Function: runAction()
function runAction(
node,
name,
input?
): Promise<unknown>;Defined in: packages/actions/src/index.ts:1109
Runs an action by name, checking its input first.
Parameters
| Parameter | Type |
|---|---|
node | P2PNode |
name | string |
input? | unknown |
Returns
Promise<unknown>
Throws
When the action is unknown or the input does not fit