fix(plugin-workflow): fix exporting types (#2707)

This commit is contained in:
Junyi 2023-09-23 10:08:59 +08:00 committed by GitHub
parent dd536331a9
commit 8fe4640f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
export * from './constants';
// export * from './instructions';
export type * from './instructions';
export { Trigger } from './triggers';
export { default as Processor } from './Processor';
export { default } from './Plugin';

View File

@ -7,13 +7,13 @@ import Processor from '../Processor';
import type { FlowNodeModel } from '../types';
export type Job = {
export interface IJob {
status: number;
result?: 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;