You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make porting this library easier, and maybe also to make contributing to this library slightly easier, it would be lovely if we had type annotations.
The text was updated successfully, but these errors were encountered:
I used the excellent earcut library, and it was rock solid.
However, once I started looking into porting it to other languages (e.g. C#), I quickly ran into the issue of "wait, what type does this have"?
For example, what type does
list
have?https://github.com/mapbox/earcut/blob/afb5797dbf9272661ca4d49ee2e08bd0cd96e1ed/src/earcut.js#L272C30-L272C30
(Spoiler: It's a
Node
. Not aNode[]
)To make porting this library easier, and maybe also to make contributing to this library slightly easier, it would be lovely if we had type annotations.
The text was updated successfully, but these errors were encountered: