phetsims / sun

User-interface components for PhET simulations, built on top of Scenery.
MIT License
4 stars 12 forks source link

Specify params for Popupable trait without using `any` #777

Open jbphet opened 2 years ago

jbphet commented 2 years ago

In https://github.com/phetsims/chipper/issues/1253 we are adding a lint rule that, for the most part, forbid the use of the any type specification. The Popupable.ts file is using any in its constructor so that it can work well with the other classes with which it is combined. I don't have any idea how to make this more type-specific, so I'm going to add a comment that will tell lint to ignore this for now and assign to one of the original authors.