enum PLAYER { PLAY = 'action/player/play' , PAUSE = 'action/player/pause' , SET_VOLUME = 'action/player/set-volume' , ENTER_FULLSCREEN = 'action/player/enter-fullscreen' , EXIT_FULLSCREEN = 'action/player/exit-fullscreen' , ENTER_PAGE_FULLSCREEN = 'event/player/enter-page-fullscreen' , EXIT_PAGE_FULLSCREEN = 'event/player/exit-page-fullscreen' , ENTER_PIP = 'action/player/enter-pip' , EXIT_PIP = 'action/player/exit-pip' , TIME_UPDATE = 'action/player/time-update' , SHOW_CONTROLLER = 'action/player/show-controller' } export const ACTIONS = { ... PLAYER , deprecated PLAYER , } ; export type ACTIONS = PLAYER | never ; type Dispatch < P > = ( params : P ) => void ; export type ActionParamsMap = { [ ACTIONS . PLAY ] : Dispatch < void > ; [ ACTIONS . PAUSE ] : Dispatch < void | { dontApplyOnFullScreen : boolean ; } > ; [ ACTIONS . SET_VOLUME ] : Dispatch < { volume : number ; } > ; [ ACTIONS . ENTER_FULLSCREEN ] : Dispatch < void > ; [ ACTIONS . EXIT_FULLSCREEN ] : Dispatch < void > ; [ ACTIONS . ENTER_PAGE_FULLSCREEN ] : Dispatch < void > ; [ ACTIONS . EXIT_PAGE_FULLSCREEN ] : Dispatch < void > ; [ ACTIONS . ENTER_PIP ] : Dispatch < void > ; [ ACTIONS . EXIT_PIP ] : Dispatch < void > ; [ ACTIONS . TIME_UPDATE ] : Dispatch < { currentTime : number ; } > ; [ ACTIONS . SHOW_CONTROLLER ] : Dispatch < void > ; } ;