-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript conversion #726
Comments
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…dded ISoundPlayer). See phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…dded ISoundPlayer). See phetsims/scenery-phet#726
…dded ISoundPlayer). See phetsims/scenery-phet#726
…dded ISoundPlayer). See phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see #726
…inherited types), Slider/SliderTrack (and associated types), NumberControl/ArrowButton/NumberDisplay, see phetsims/scenery-phet#726
…dded ISoundPlayer). See phetsims/scenery-phet#726
@jbphet I converted some tambo bits since Slider depended on the options object for ValueChangeSoundGenerator. Can you review that portion? |
InteractionStateProperty looks really tricky here. They use different value sets for different concrete controls, but it's used in e.g. RectangularButton. I've had to type it as We may need to parameterize the core types e.g. |
@chrisklus and I noticed that ReadOnlyProperty was written like this: export interface ReadOnlyProperty<T> extends Property<T> {
readonly value: T;
// Any solution with Omit<Property<T>, 'set' | 'reset'> was failing, as it wasn't assignable to PhetioObject
set: unknown & any;
reset: unknown & any;
} However, this means that this code type checks: const p = new Property( 1 );
const x: ReadOnlyProperty<number> = p;
x.set( 7 ); Also, we were surprised to see phetsims/center-and-variability@b416354 where an IReadOnlyProperty was converted to Property. It seems it should remain read-only. @jonathanolson can you please advise? |
The 'tambo bits' have been reviewed and look good, though I did make some minor touchups. |
@jonathanolson It's been ~30 days since we discussed deleting |
I'll work on removing it momentarily, in phetsims/axon#377 |
Unfortunately |
It sounds pretty safe to remove it in a maintenance release commit, if you like. |
@jonathanolson can you please report on this status? @zepumph and I are curious whether it's still blocking for the upcoming PhET-iO milestone. |
I believe ReadOnlyProperty is now part of the axon hierarchy. @samreid anything left to do here? |
To clarify, I'm uncertain about #726 (comment) or the rest of the scope of this issue, up to you. |
Remaining TypeScript work is in scenery-phet is tracked in separate issues. So this issue can be closed. |
…dded ISoundPlayer). See phetsims/scenery-phet#726
Creating an issue to tag commits (for review), and to discuss potential problems in conversion.
The text was updated successfully, but these errors were encountered: