siegel
Version:
Web application development ecosystem
20 lines (19 loc) • 530 B
TypeScript
type Handlers = {
onEnter(): void;
onDelete(): void;
};
type Store = ReactStore<{
arrowSelectIndex: number | undefined;
} & Obj>;
type Options = {
disabled?: boolean;
}[];
type SelectedOptionIndex = number | Set<number> | undefined;
declare function handleKeyboardSelect(selectionParams: {
keyCode: string;
selectStore: Store;
options: Options;
selectedOptionIndex: SelectedOptionIndex;
}, handlers: Handlers): void;
export default handleKeyboardSelect;
export type { Store, SelectedOptionIndex };