MCPcopy
hub / github.com/surmon-china/videojs-player / prop

Function prop

player/props.ts:8–13  ·  view source on GitHub ↗
(options: {
  type: PropType<T>
  default?: any
  onChange?: (player: VideoJsPlayer, newValue: T, oldValue?: T) => any
  onEvent?: (player: VideoJsPlayer, callback: (newValue: T) => void) => any
})

Source from the content-addressed store, hash-verified

6type InferPropType<T> = T extends PropType<infer V> ? V : T
7
8const prop = <T>(options: {
9 type: PropType<T>
10 default?: any
11 onChange?: (player: VideoJsPlayer, newValue: T, oldValue?: T) => any
12 onEvent?: (player: VideoJsPlayer, callback: (newValue: T) => void) => any
13}) => options
14
15// Standard <video> Element Options
16// https://videojs.com/guides/options/#standard

Callers 1

props.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected