Function
prop
(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
| 6 | type InferPropType<T> = T extends PropType<infer V> ? V : T |
| 7 | |
| 8 | const 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 |
Tested by
no test coverage detected