UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

16 lines (15 loc) 710 B
import { ApiBase } from './ApiBase'; import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable'; import { EventApi } from '../EventApi'; import { EmitterCallback } from '../../Utilities/Emitter'; import { EventInternalApi } from '../Internal/EventInternalApi'; export declare class EventApiImpl extends ApiBase implements EventApi { private emitter; internalApi: EventInternalApi; constructor(_adaptable: IAdaptable); destroy(): void; on: (eventName: string, callback: EmitterCallback) => (() => void); off: (eventName: string, callback: EmitterCallback) => void; emit: (eventName: string, data?: any) => Promise<any>; emitSync: (eventName: string, data?: any) => any; }