core/src/types/message.ts

12 lines
263 B
TypeScript
Raw Normal View History

2020-11-21 15:41:08 +00:00
import { IPlugin } from '../plugin/plugin';
2020-11-28 13:34:34 +00:00
import { Protocol } from './protocol';
2020-11-21 15:41:08 +00:00
2020-11-28 19:08:23 +00:00
// TODO: Source specification to support plugin services.
2020-11-21 15:41:08 +00:00
export interface IMessage {
data: any;
2020-11-28 13:34:34 +00:00
source: IPlugin | Protocol;
2020-11-21 15:41:08 +00:00
time: Date;
resolve(...args: any[]): void;
}