From 352758aabbd9632fe4501d32d632a98c15eed240 Mon Sep 17 00:00:00 2001 From: JonathanTGold <62672270+JonathanTGold@users.noreply.github.com> Date: Mon, 11 Jul 2022 14:02:05 +0200 Subject: [PATCH] fix(FEC-12380): update TS types declarations (#553) Update TS types declarations solves: FEC-12380 --- types.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types.d.ts b/types.d.ts index b70eeb756..94877e71b 100644 --- a/types.d.ts +++ b/types.d.ts @@ -54,6 +54,7 @@ export class KalturaPlayer { public registerService(pluginName: string, service: Object): void; public getService(serviceName: string): T; public get ui(): UIWrapper; + public get Event(): EventTypes; } export class UIWrapper { @@ -74,6 +75,13 @@ export interface Logger { error(message: any, ...optionalParams: any[]): void; } +export interface EventTypes { + Core: {[event: string]: string}, + UI: {[event: string]: string}, + Cast: {[event: string]: string}, + Playlist: {[event: string]: string} +} + declare module PlaykitUI { export type SidePanelPosition = 'top' | 'bottom' | 'right' | 'left'; export type SidePanelMode = 'alongside' | 'hidden' | 'over';