update: trigger type
This commit is contained in:
parent
95c062ac3b
commit
39888efa15
|
@ -344,7 +344,7 @@ export interface EditorInterface {
|
|||
* @param eventType 事件名称
|
||||
* @param args 触发参数
|
||||
*/
|
||||
trigger(eventType: string, ...args: any): any;
|
||||
trigger<R = any>(eventType: string, ...args: any): R;
|
||||
/**
|
||||
* 全选ctrl+a键按下,返回false,终止处理其它监听
|
||||
* @param eventType
|
||||
|
@ -946,7 +946,7 @@ export interface EngineInterface extends EditorInterface {
|
|||
* @param eventType 事件名称
|
||||
* @param args 触发参数
|
||||
*/
|
||||
trigger(eventType: string, ...args: any): any;
|
||||
trigger<R = any>(eventType: string, ...args: any): R;
|
||||
/**
|
||||
* 全选ctrl+a键按下,返回false,终止处理其它监听
|
||||
* @param eventType
|
||||
|
|
|
@ -33,7 +33,7 @@ export interface EventInterface {
|
|||
* @param eventType 事件类型
|
||||
* @param args 事件参数
|
||||
*/
|
||||
trigger(eventType: string, ...args: any): any;
|
||||
trigger<T = any>(eventType: string, ...args: any): T;
|
||||
}
|
||||
export type Selector =
|
||||
| string
|
||||
|
|
|
@ -18,7 +18,7 @@ export interface ViewInterface extends EditorInterface {
|
|||
* @param eventType 事件名称
|
||||
* @param args 参数
|
||||
*/
|
||||
trigger(eventType: string, ...args: any): any;
|
||||
trigger<R = any>(eventType: string, ...args: any): R;
|
||||
/**
|
||||
* 触发render事件
|
||||
* @param eventType render
|
||||
|
|
Loading…
Reference in New Issue