Open pixelzoom opened 1 year ago
Should PhetioCapsule API be changed from phetioType to phetioValueType, as was done for DerivedProperty?
phetioType
phetioValueType
Example in PhetMenu.ts:
const aboutDialogCapsule = new PhetioCapsule( ..., { ... phetioType: PhetioCapsule.PhetioCapsuleIO( Dialog.DialogIO ) } );
The PhetioCapsule.PhetioCapsuleIO bit is required in all cases. So why not change to:
PhetioCapsule.PhetioCapsuleIO
- phetioType: PhetioCapsule.PhetioCapsuleIO( Dialog.DialogIO ) + phetioValueType: Dialog.DialogIO
Adding to https://github.com/phetsims/phet-io/issues/1914 and self-unassigning.
Should PhetioCapsule API be changed from
phetioType
tophetioValueType
, as was done for DerivedProperty?Example in PhetMenu.ts:
The
PhetioCapsule.PhetioCapsuleIO
bit is required in all cases. So why not change to: