PhetioProperty¶
Overview¶
@author Michael Kauzmann (PhET Interactive Simulations)
Type PhetioProperty¶
When calling PhetioObject.addLinkedElement, the parameter must be a PhetioObject, so this type alias covers that ground and helps with cases like LocalizedStringProperty (and DynamicProperty in general) which satisfies the TProperty interface and is a PhetioObject. It is best to try to use the ReadOnlyProperty class hierarchy first, and this Type Alias can help cover cases where that doesn't work, see https://github.com/phetsims/tandem/issues/299
TProperty<T> & PhetioObject
Source Code¶
See the source for PhetioProperty.ts in the axon repository.