Skip to content

Commit 35220ab

Browse files
authored
Removing all references to FunctionInput. (#22)
This pull request removes the core type definitions related to function inputs and a utility function for converting function inputs to a specific event format. It also updates the documentation to generalize the expected type for the `run` method's input parameter. Related issue: https://app.devrev.ai/devrev/works/ISS-206307
1 parent 045de46 commit 35220ab

File tree

3 files changed

+1
-83
lines changed

3 files changed

+1
-83
lines changed

base_folder/src/core/types.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

base_folder/src/core/utils.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/function_invocation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ A function can be invoked synchronously or asynchronously.
33
You need to implement the run method in your function. The run method is called when the function is invoked. The run method signature is defined below:
44

55
```typescript
6-
async function run(events: []FunctionInput): any;
6+
async function run(events: any[]): any;
77
```
88

99
The value returned from the `run` method is passed back in synchronous execution modes, such as commands, snap kit actions, and event source synchronous execution. In asynchronous execution modes, such as automation execution, the return value is ignored.

0 commit comments

Comments
 (0)