@shimotsuki/core 2.0.49 → 2.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -209,7 +209,7 @@ declare class BaseComponent<T extends object = {}, K extends object = {}> extend
209
209
  protected addAutorun(cb: (() => void) | (() => void)[]): this;
210
210
  /**添加自动收集 */
211
211
  protected addReaction<T, FireImmediately extends boolean = false>(expression: (r: IReactionPublic) => T, effect: (arg: T, prev: FireImmediately extends true ? T | undefined : T, r: IReactionPublic) => void, opts?: IReactionOptions<T, FireImmediately>): this;
212
- protected addAudoListener(eventEmitter: EventEmitter): EventEmitter<string | symbol, any>;
212
+ protected addAudoListener<E extends EventEmitter<any>>(eventEmitter: E): E;
213
213
  _onPreDestroy(): void;
214
214
  protected onDisable(): void;
215
215
  private deleteAllEventByEmitter;