fix(plugin-workflow): fix exporting types (#2707)
This commit is contained in:
parent
dd536331a9
commit
8fe4640f79
@ -1,5 +1,5 @@
|
|||||||
export * from './constants';
|
export * from './constants';
|
||||||
// export * from './instructions';
|
export type * from './instructions';
|
||||||
export { Trigger } from './triggers';
|
export { Trigger } from './triggers';
|
||||||
export { default as Processor } from './Processor';
|
export { default as Processor } from './Processor';
|
||||||
export { default } from './Plugin';
|
export { default } from './Plugin';
|
||||||
|
@ -7,13 +7,13 @@ import Processor from '../Processor';
|
|||||||
|
|
||||||
import type { FlowNodeModel } from '../types';
|
import type { FlowNodeModel } from '../types';
|
||||||
|
|
||||||
export type Job = {
|
export interface IJob {
|
||||||
status: number;
|
status: number;
|
||||||
result?: unknown;
|
result?: unknown;
|
||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
} | null;
|
}
|
||||||
|
|
||||||
export type InstructionResult = Job | Promise<Job>;
|
export type InstructionResult = IJob | Promise<IJob> | null;
|
||||||
|
|
||||||
export type Runner = (node: FlowNodeModel, input: any, processor: Processor) => InstructionResult;
|
export type Runner = (node: FlowNodeModel, input: any, processor: Processor) => InstructionResult;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user