timoxley / keycode

Convert between keyboard keycodes and keynames and vice versa.
MIT License
455 stars 62 forks source link

Does not work with TypeScript ES modules #40

Open hatashiro opened 7 years ago

hatashiro commented 7 years ago
// in TypeScript
import * as keycode from 'keycode';

The code above results in error TS2307: Cannot find module 'keycode'.

The tsc version is v2.4.1.

nkint commented 6 years ago

here too with ts 2.6.2, npm 5.3.0

wachunga commented 6 years ago

Works fine for me, typescript 2.6.1.

import keycode from 'keycode';