mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
21 lines
712 B
TypeScript
21 lines
712 B
TypeScript
import { HotkeyActionName } from "@videojs/core/dom";
|
|
import { ReactNode } from "react";
|
|
//#region src/ui/hotkey/hotkey.d.ts
|
|
interface HotkeyProps {
|
|
keys: string;
|
|
action: HotkeyActionName | (string & {});
|
|
value?: number;
|
|
disabled?: boolean;
|
|
target?: 'player' | 'document';
|
|
}
|
|
declare function Hotkey({ keys, action, value, disabled, target }: HotkeyProps): ReactNode;
|
|
declare namespace Hotkey {
|
|
type Props = HotkeyProps;
|
|
}
|
|
/** @deprecated Use `HotkeyProps` instead. */
|
|
type MediaHotkeyProps = HotkeyProps;
|
|
/** @deprecated Use `Hotkey` instead. */
|
|
declare const MediaHotkey: typeof Hotkey;
|
|
//#endregion
|
|
export { Hotkey, HotkeyProps, MediaHotkey, MediaHotkeyProps };
|
|
//# sourceMappingURL=hotkey.d.ts.map
|