IonicaBizau / image-to-ascii

:floppy_disk: A Node.js module that converts images to ASCII art.
http://ionicabizau.net/blog/16
MIT License
1.58k stars 105 forks source link

TypeScript support and type definitions #77

Closed in-ch closed 1 week ago

in-ch commented 1 month ago

Thank you for the great open-source library. 😀

The imageToAscii package currently lacks TypeScript type definitions, which makes it difficult to use in TypeScript projects. Adding official TypeScript support or providing type definition files (.d.ts) would greatly enhance the developer experience and improve the usability of the package in TypeScript environments.

Problem:

스크린샷 2024-08-12 16 30 08

Without proper type definitions, TypeScript users have to manually create their own types or use workarounds, which can lead to errors and inconsistencies. It would be beneficial if the package provided built-in type definitions or at least had a community-maintained type definition file available through DefinitelyTyped.

If you're open to it, I would be happy to contribute by adding an index.d.ts file and submitting a PR