Skip to content

Commit

Permalink
Fix index key declaration (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitayoshi authored and greena13 committed Jan 21, 2019
1 parent a5a9b79 commit db8c58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface KeyMapOptions {

export type KeySequence = MouseTrapKeySequence | KeyMapOptions | Array<MouseTrapKeySequence> | Array<KeyMapOptions>;

export type KeyMap = { [key: ActionName]: KeySequence };
export type KeyMap = { [key in ActionName]: KeySequence };

/**
* Component that listens to key events when one of its children are in focus and
Expand Down Expand Up @@ -118,7 +118,7 @@ export class HotKeysIgnore extends React.Component<HotKeysIgnoredProps, {}> { }
*/
export declare function withHotKeysIgnore(Component: React.ComponentClass, hotKeysIgnoreOptions: HotKeysIgnoredProps): HotKeysIgnored;

export type ApplicationKeyMap = { [key: ActionName]: Array<MouseTrapKeySequence> };
export type ApplicationKeyMap = { [key in ActionName]: Array<MouseTrapKeySequence> };

/**
* Generates and returns the application's key map, including not only those
Expand Down

0 comments on commit db8c58f

Please sign in to comment.