playable
Version:
Video player based on HTML5Video
11 lines (10 loc) • 552 B
TypeScript
import { PLAYER_API_PROPERTY } from './player-api-decorator';
declare type ModuleAPI = Record<string, any> | void;
export declare type IModule<T extends ModuleAPI = Record<string, any>> = {
[PLAYER_API_PROPERTY]?: Record<string, any>;
getAPI?(): T;
};
declare type ModuleWithoutAPI = {};
declare type ModuleWithAPI<T extends ModuleAPI> = ModuleWithoutAPI & Required<Omit<IModule<T>, typeof PLAYER_API_PROPERTY>>;
export declare type IPlayableModule<T extends ModuleAPI = void> = T extends void ? ModuleWithoutAPI : ModuleWithAPI<T>;
export {};