rotemdan / lzutf8.js

A high-performance Javascript string compression library
MIT License
322 stars 26 forks source link

Typescript Type Declarations #14

Closed deegles closed 6 years ago

deegles commented 7 years ago

Would it be possible to add type declarations for Typescript compatibility?

Something like this: https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-class-d-ts.html

Would be happy to help with a PR if you can help review.

rotemdan commented 6 years ago

Fixed in #17 (with some possible unresolvable type issues in the generated declaration file - looking into it)