Skip to content

Commit cafa642

Browse files
committed
share types
1 parent a891c1e commit cafa642

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/@react-aria/interactions/src/useKeyboard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
*/
1212

1313
import {createEventHandler} from './createEventHandler';
14-
import {createKeyboardShortcutHandler, getEventTarget, type KeyboardShortcutAction, nodeContains} from '@react-aria/utils';
14+
import {createKeyboardShortcutHandler, getEventTarget, KeyboardShortcutBindings, nodeContains} from '@react-aria/utils';
1515
import {DOMAttributes, KeyboardEvents} from '@react-types/shared';
1616
import {KeyboardEvent as ReactKeyboardEvent, RefObject} from 'react';
1717

1818
export interface KeyboardProps extends KeyboardEvents {
1919
/** Whether the keyboard events should be disabled. */
2020
isDisabled?: boolean,
2121
/** Keyboard shortcuts to handle. */
22-
shortcuts?: Record<string, KeyboardShortcutAction>,
22+
shortcuts?: KeyboardShortcutBindings,
2323
/** A ref to the element to ignore portal events. */
2424
ignorePortalRef?: RefObject<Element> | null
2525
}

0 commit comments

Comments
 (0)