-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converting DerivedProperty/Multilink to properly parameterized TypeSc…
…ript, and usage of IReadOnlyProperty. See phetsims/axon#371
- Loading branch information
1 parent
4cf0ad3
commit 527e11b
Showing
2 changed files
with
5 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Copyright 2021, University of Colorado Boulder | ||
|
||
import IProperty from '../../../axon/js/IProperty.js'; | ||
import IReadOnlyProperty from '../../../axon/js/IReadOnlyProperty.js'; | ||
import { Color } from '../imports.js'; | ||
|
||
/** | ||
|
@@ -9,6 +9,6 @@ import { Color } from '../imports.js'; | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
type IColor = IProperty<Color | string | null> | IProperty<Color | string> | IProperty<Color> | Color | string | null; | ||
type IColor = IReadOnlyProperty<Color | string | null> | IReadOnlyProperty<Color | string> | IReadOnlyProperty<Color> | Color | string | null; | ||
|
||
export default IColor; |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// Copyright 2021, University of Colorado Boulder | ||
|
||
import IProperty from '../../../axon/js/IProperty.js'; | ||
import { Paint, Color } from '../imports.js'; | ||
import IReadOnlyProperty from '../../../axon/js/IReadOnlyProperty.js'; | ||
import { Color, Paint } from '../imports.js'; | ||
|
||
/** | ||
* Type representing a PaintDef | ||
* | ||
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
type IPaint = Paint | IProperty<Color | string | null> | IProperty<Color | string> | IProperty<Color> | Color | string | null; | ||
type IPaint = Paint | IReadOnlyProperty<Color | string | null> | IReadOnlyProperty<Color | string> | IReadOnlyProperty<Color> | Color | string | null; | ||
|
||
export default IPaint; |