u2f icon indicating copy to clipboard operation
u2f copied to clipboard

Add typescript type definitions

Open clems4ever opened this issue 7 years ago • 5 comments

Add type definitions and a test file in typescript to test the compilation.

npm run build compiles the typescript test file in directory build/ so that you can run it and check everything is working fine.

clems4ever avatar May 27 '17 23:05 clems4ever

For you information, I've also written the type definitions for the u2f-api npm package that I use in combination with u2f package in my project (https://www.npmjs.com/package/authelia). I will create a pull request soon for u2f-api.

clems4ever avatar May 27 '17 23:05 clems4ever

Hello @ashtuchkin , did you have time to check the PR?

clems4ever avatar Sep 28 '17 15:09 clems4ever

Out of interest: how does the testing of the typings work? You just have included the .ts file in include section of tsconfig and when it compiles it's correct?

zcei avatar Sep 29 '17 08:09 zcei

Sorry for such a long delay!

ashtuchkin avatar Oct 11 '17 06:10 ashtuchkin

Everything should be fixed now. Sorry for the long delay as well :).

clems4ever avatar Jan 27 '18 10:01 clems4ever