foliojs / fontkit

An advanced font engine for Node and the browser
1.44k stars 210 forks source link

Add TypeScript typings generation from JSDocs; Updated some docs #293

Open AgainPsychoX opened 1 year ago

AgainPsychoX commented 1 year ago

It would be hard to port project to TypeScript and maintaining typings at DefinitelyTyped is annoying (current ones are outdated too), but fortunately we can use JSDocs! 😃

After accepting and merging the pull request, please follow https://github.com/DefinitelyTyped/DefinitelyTyped#removing-a-package to remove old typings from there.

While it works for me, I can see the even JSDocs included in this library JS code are lacking, so I will try my best to work on those a bit.

[This is draft, more commits coming I hope I get soon more free time to work on this :/ ]

craigthings commented 10 months ago

Working with fontkit in Typescript has been very tricky. Curious if there's anyone looking to merge this?