修复无界eventBus类型错误的问题
This commit is contained in:
parent
e4faef2694
commit
a81b7bbbc4
|
@ -39,9 +39,19 @@ export class CustomDefines {
|
|||
function_mirroring_output = false;
|
||||
}
|
||||
|
||||
export interface WuJieInterface {
|
||||
export interface IWuJieEventBis {
|
||||
$on(event: string, fn: Function): IWuJieEventBis;
|
||||
/** 任何$emit都会导致监听函数触发,第一个参数为事件名,后续的参数为$emit的参数 */
|
||||
$onAll(fn: (event: string, ...args: Array<any>) => any): IWuJieEventBis;
|
||||
$once(event: string, fn: Function): void;
|
||||
$off(event: string, fn: Function): IWuJieEventBis;
|
||||
$offAll(fn: Function): IWuJieEventBis;
|
||||
$emit(event: string, ...args: Array<any>): IWuJieEventBis;
|
||||
$clear(): IWuJieEventBis;
|
||||
}
|
||||
export interface IWuJieInterface {
|
||||
props: any;
|
||||
bus: EventEmitter;
|
||||
bus: IWuJieEventBis;
|
||||
}
|
||||
|
||||
export interface StateInterface {
|
||||
|
@ -86,7 +96,7 @@ export interface StateInterface {
|
|||
isLedPlayer: () => boolean;
|
||||
isSpecialVideo: () => boolean;
|
||||
|
||||
$wujie: WuJieInterface | null;
|
||||
$wujie: IWuJieInterface | null;
|
||||
//
|
||||
selected_projector: string;
|
||||
EnableBlending: boolean;
|
||||
|
@ -306,7 +316,6 @@ export const storeKey: InjectionKey<VuexStore<StateInterface>> =
|
|||
|
||||
import window_color_list from "./window_color_list.js";
|
||||
import { EProductNames } from "src/entities/ProductNames";
|
||||
import EventEmitter from "events";
|
||||
export const NullSignalSource =
|
||||
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
|
||||
|
||||
|
|
Loading…
Reference in New Issue