-
-
Notifications
You must be signed in to change notification settings - Fork 10
Typescript types #2
Comments
Hi @fkranenburg I'm happy to merge your typescript version into the module, could you create a PR for it? Thanks :) |
I vote against making it typescript-only. There are people who are not will never use typescript. |
@punund But changing the source code to typescript will make sure the types can be shipped automatically with the module, which will make Typescript user's life easier. |
If you can't wait or the change from js to ts never happens, you can just add the typings definition.
and just add an interface and save it as KeyPress.d.ts
|
@javatlacati I quickly published v2.1.1 where the types are included, so all you gotta do now is add it to your See here I'll close this since it's not an issue anymore, next time I'll have some time I'll probably rewrite the module in Typescript. If someone wants to rebuild the module in typescript be my guest and submit a PR :) |
Please add typescript typings or convert this to typescript. I wrote a typescript version which is working for me:
The text was updated successfully, but these errors were encountered: