interface.ts 571 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/**
 * 全局消息
 *
 * @export
 * @interface AppMessage
 */
export interface AppMessage {
    /**
     * 消息类型
     *
     * @type {('CONSOLE' | 'COMMAND')}
     * @memberof AppMessage
     */
    type: 'CONSOLE' | 'COMMAND';
    /**
     * 消息子类型
     *
     * @type {('OBJECTUPDATED' | 'OBJECTREMOVED' | 'OBJECTCREATED' | string)}
     * @memberof AppMessage
     */
    subtype?: 'OBJECTUPDATED' | 'OBJECTREMOVED' | 'OBJECTCREATED' | string;
    /**
     * 消息内容
     *
     * @type {*}
     * @memberof AppMessage
     */
    content: any;
}