greena13 / react-hotkeys

Declarative hotkey and focus area management for React
https://github.com/greena13/react-hotkeys
ISC License
2.15k stars 161 forks source link

Fix a syntax error in the types definition file on TypeScript 3.9.3 #276

Closed airhorns closed 2 years ago

airhorns commented 4 years ago

This file was throwing a TypeScript syntax error when being required:

  ../../node_modules/@gadgetinc/react-hotkeys/index.d.ts(31,64): error TS1005: ';' expected.

This fixes it, types aren't like interfaces and can't have empty brackets.

ibash commented 3 years ago

@airhorns come to the community edition: https://github.com/ibash/react-hotkeys