mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(core)!: tighten constrained jsx boundary
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createHotkey, type HotkeyActionName, isHotkeyToggleAction, resolveHotkeyAction } from '@videojs/core/dom';
|
||||
import type { HotkeyProps } from '@videojs/core';
|
||||
import { createHotkey, isHotkeyToggleAction, resolveHotkeyAction } from '@videojs/core/dom';
|
||||
import type { PropertyDeclarationMap, PropertyValues } from '@videojs/element';
|
||||
import { ContextConsumer } from '@videojs/element/context';
|
||||
|
||||
@@ -17,11 +18,11 @@ export class HotkeyElement extends MediaElement {
|
||||
target: { type: String },
|
||||
};
|
||||
|
||||
keys = '';
|
||||
action: HotkeyActionName | (string & {}) = '';
|
||||
value: number | undefined = undefined;
|
||||
keys: HotkeyProps['keys'] = '';
|
||||
action: HotkeyProps['action'] = '';
|
||||
value: HotkeyProps['value'] = undefined;
|
||||
disabled = false;
|
||||
target: 'player' | 'document' = 'player';
|
||||
target: NonNullable<HotkeyProps['target']> = 'player';
|
||||
|
||||
readonly #player = new PlayerController(this, playerContext);
|
||||
readonly #container = new ContextConsumer(this, {
|
||||
|
||||
Reference in New Issue
Block a user