phetsims / axon

Axon provides powerful and concise models for interactive simulations, based on observable Properties and related patterns.
MIT License
10 stars 8 forks source link

Convert Property to TypeScript #369

Closed samreid closed 1 year ago

samreid commented 2 years ago

Now that https://github.com/phetsims/chipper/issues/1148 is underway, it is a good time to move Property to TypeScript.

samreid commented 2 years ago

Property and a few subclasses were converted to TypeScript. There are some ts-ignore and some any, but those can be reduced over time.

I was reminded that axon and tandem have their tsconfigs in chipper, and needed an entry point for unit tests. Adding to axon unit tests may not trigger tsc beforehand in the precommit hooks.

Also, there is not a good way to cd axon and run tsc at the moment, due to its relationship with tandem.

samreid commented 1 year ago

Progress in issues like https://github.com/phetsims/axon/issues/342 and the recent TypeScript sprint. Closing.