handlers.d.ts 783 B

1234567891011121314151617181920212223
  1. export type TFunctionImpl = (...args: any[]) => any;
  2. interface IImplInfo {
  3. fn: TFunctionImpl;
  4. bindContext: any;
  5. off?: () => void;
  6. }
  7. export default class HandlersController {
  8. elementTag: string;
  9. locked: boolean;
  10. executionInProgress: boolean;
  11. executionQueue: Array<() => void>;
  12. handlerNames: string[];
  13. handlerImpl: Record<string, IImplInfo[]>;
  14. constructor(elementTag?: string);
  15. addHandler(name: string, bindContext?: any, impl?: TFunctionImpl, disableMultiImpl?: boolean): () => void;
  16. lockHandlerNames(): void;
  17. resetAllImpl(): void;
  18. getHandlersByName(name: string, context: any): IImplInfo[];
  19. callHandlers(name: string, context: any, args: any[]): any;
  20. getHandlersImplProxy(): {};
  21. private filterContext;
  22. }
  23. export {};