kevlened / isomorphic-webcrypto

:game_die: webcrypto library for Node, React Native and IE11+
https://www.w3.org/TR/WebCryptoAPI/
MIT License
116 stars 42 forks source link

typescript+es6 support #22

Open sirpy opened 5 years ago

sirpy commented 5 years ago

trying to integrate with webcrypto-liner and other libraries can you help out by setting your project to support typescript + es6?

kevlened commented 5 years ago

Hmm, I'm unsure what setting this library to typescript + es6 would mean and how it would help integrate with other WebCrypto libraries.

vscode should automatically import types from libraries that export them, even with commonjs. We export index.d.js to ensure other projects get types when they import isomorphic-webcrypto.

sirpy commented 5 years ago

we need to add precompiler like babel. otherwise it would require rewriting code we want to reuse that is in ts or es6