Skip to content

Commit

Permalink
fix(FEC-12380): update TS types declarations (#553)
Browse files Browse the repository at this point in the history
Update TS types declarations

solves: FEC-12380
  • Loading branch information
JonathanTGold authored Jul 11, 2022
1 parent 3c7889d commit 352758a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class KalturaPlayer {
public registerService(pluginName: string, service: Object): void;
public getService<T>(serviceName: string): T;
public get ui(): UIWrapper;
public get Event(): EventTypes;
}

export class UIWrapper {
Expand All @@ -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';
Expand Down

0 comments on commit 352758a

Please sign in to comment.