jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.29k stars 454 forks source link

[Enhancement] Move types for "Extras" outside of main types.d.ts #660

Open jonobr1 opened 2 years ago

jonobr1 commented 2 years ago

Is your feature request related to a problem? Please describe. The main types.d.ts currently has types for Two.ZUI, but not types for Two.Arc. This is because adding them creates conflicts for the documentation with Two.ArcSegment. Also, perhaps there isn't a need to bloat the types.d.ts file with information that developers may not use.

Describe the solution you'd like Create a system / rule for defining types of modules in the /extras folder.

Additional context See how other libraries handle this, like Three.js