From a56a22fe0cb19d60ef734fb6a0fcfe2dc64e7555 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Tue, 7 Dec 2021 18:32:04 -0700 Subject: [PATCH] Converting DerivedProperty/Multilink to properly parameterized TypeScript, and usage of IReadOnlyProperty. See https://github.com/phetsims/axon/issues/371 --- js/game/model/Subitizer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/game/model/Subitizer.ts b/js/game/model/Subitizer.ts index 862f9141..cd9c3b58 100644 --- a/js/game/model/Subitizer.ts +++ b/js/game/model/Subitizer.ts @@ -16,6 +16,7 @@ import BooleanProperty from '../../../../axon/js/BooleanProperty.js'; import DerivedProperty from '../../../../axon/js/DerivedProperty.js'; +import IReadOnlyProperty from '../../../../axon/js/IReadOnlyProperty.js'; import NumberProperty from '../../../../axon/js/NumberProperty.js'; import Property from '../../../../axon/js/Property.js'; import Bounds2 from '../../../../dot/js/Bounds2.js'; @@ -119,7 +120,7 @@ class Subitizer { private timeSinceShapeVisible: number; public readonly objectSize: number; public readonly inputEnabledProperty: BooleanProperty; - private timeToShowShapeProperty: DerivedProperty; + private timeToShowShapeProperty: IReadOnlyProperty; public objectTypeProperty: Property; public isDelayStarted: boolean; private timeSinceDelayStarted: number;