-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove as many LinkableElement usages as possible, using PhetioProper…
…ty where we have to, phetsims/tandem#299 Signed-off-by: Michael Kauzmann <[email protected]>
- Loading branch information
Showing
5 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2023, University of Colorado Boulder | ||
|
||
import PhetioObject from '../../tandem/js/PhetioObject.js'; | ||
import TProperty from './TProperty.js'; | ||
|
||
// 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 | ||
type PhetioProperty<T> = TProperty<T> & PhetioObject; | ||
|
||
export default PhetioProperty; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters