Closed zepumph closed 2 years ago
I noticed over in https://github.com/phetsims/axon/issues/358#issuecomment-1061325586 that @jonathanolson said:
Defined initial types and type guards in NumberProperty:
But can we instead use assertion signatures instead?
https://www.carlrippon.com/typescript-assertion-signatures/
Actually, I prefer usages I see of asRanged() to using assertion signatures which require an argument.
I noticed over in https://github.com/phetsims/axon/issues/358#issuecomment-1061325586 that @jonathanolson said:
But can we instead use assertion signatures instead?
https://www.carlrippon.com/typescript-assertion-signatures/