UNPKG

@playkit-js/kaltura-player-js

Version:

[![Build Status](https://github.com/kaltura/kaltura-player-js/actions/workflows/run_canary.yaml/badge.svg)](https://github.com/kaltura/kaltura-player-js/actions/workflows/run_canary.yaml) [![code style: prettier](https://img.shields.io/badge/code_style-pr

13 lines (11 loc) 545 B
type Target = KalturaPlayerTypes.Player | KalturaPlayerTypes.FakeEventTarget | HTMLElement | Document; type CallbackFunction = (...args: any) => void; declare namespace KalturaPlayerTypes { export interface EventManager { listen: (target: Target, event: typeof EventType, cb: CallbackFunction) => void; listenOnce: (target: Target, event: typeof EventType, cb: CallbackFunction) => void; unlisten: (target: Target, event: typeof EventType, cb?: CallbackFunction) => void; destroy: () => void; removeAll: () => void; } }