svg-text-to-path icon indicating copy to clipboard operation
svg-text-to-path copied to clipboard

TypeScript?

Open adam-rocska opened this issue 1 year ago • 2 comments

Hi there!

I really appreciate the work you've done with this library. I was wondering if you would be open to a contribution that would migrate this library to TypeScript? Currently, we're unable to generate d.ts files using tsc due to type errors, even though the JSDOC annotations are great.

For now, we're managing with our own handcrafted d.ts files, but it would be great to have a TypeScript edition of the library. If you're not interested in migrating the library to TypeScript, we could create a fork under @21GramConsulting and maintain a TypeScript edition there.

Please know that our intention is not to hijack your library, but rather to improve its compatibility with TypeScript. Would you be open to a TypeScript migration contribution?

Best, Adam

adam-rocska avatar Jun 19 '23 19:06 adam-rocska

Hi, Adam! I will make a d.ts file later. As for making a typescript fork of the project, I am against it, since the typescript itself will not bring anything. The d.ts file is enough.

paulzi avatar Jun 26 '23 20:06 paulzi

:D May I make it later, this fall? I'll come back to mangling with SVG and I'd still love to give this lib a shot in the deep water.

adam-rocska avatar Aug 29 '24 16:08 adam-rocska