fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
710 B

/**
*
*/
2 years ago
export const WorkerMessageType = {
REQUEST: 'REQUEST',
REPLY: 'REPLY',
};
/**
*
*/
export interface IWorkerMessage {
2 years ago
messageType: string;
actionType: string;
sessionId: string;
/**
*
*/
payload: any;
}
/**
* interface
*/
export interface IWorkerController {
/**
*
*/
actionHandler: (message: IWorkerMessage) => Promise<any>;
}
2 years ago
/**
* Worker创建配置
*/
export interface IWorkerOptions {
/**
* worker url
*/
workerUrl: string;
/**
* worker
*/
workerName: string;
}