diff --git a/typescript/base/single/trigger/trigger.ts b/typescript/base/single/trigger/trigger.ts new file mode 100644 index 0000000000..48f2a055ac --- /dev/null +++ b/typescript/base/single/trigger/trigger.ts @@ -0,0 +1,7 @@ +import { _Single } from "../single"; + +export interface _Trigger extends _Single { + setKey(..._args: any[]): void; + + getKey(): string; +} \ No newline at end of file diff --git a/typescript/index.ts b/typescript/index.ts index df407ad874..995273d230 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -5,6 +5,7 @@ import { _Widget, _WidgetStatic } from "./core/widget"; import { _Single } from "./base/single/single"; import { _base } from "./core/base"; import { _BasicButton } from "./base/single/button/button.basic"; +import { _Trigger } from "./base/single/trigger/trigger"; type Constructor = T & { new(config: any): T; @@ -17,4 +18,5 @@ export interface _BI extends _func, _i18n, _base { Widget: Constructor<_Widget> & _WidgetStatic; Single: Constructor<_Single>; BasicButton: Constructor<_BasicButton>; + Trigger: Constructor<_Trigger>; }