UNPKG
@buzz-code/custom-js-node
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
NocoBase plugin for executing custom JavaScript code in workflows
@buzz-code/custom-js-node
/
dist
/
server
/
CustomJsInstruction.d.ts
13 lines
(12 loc)
•
333 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
Instruction
}
from
'@nocobase/plugin-workflow'
;
export
default
class
CustomJsInstruction
extends
Instruction
{
run
(
node
:
any
,
input
:
any
,
processor
:
any
):
Promise
<{
status
:
1
;
result
:
any
;
error
?:
undefined
; } | {
status
: -
1
;
error
:
any
;
result
?:
undefined
; }>; }