From d480c06e3d97b91d1682e2908c04973deb2bebb4 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Tue, 3 Sep 2024 15:27:39 -0600 Subject: [PATCH] Add isInteractiveHighlighting, see https://github.com/phetsims/scenery/issues/1653 --- js/TRangedProperty.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/TRangedProperty.ts b/js/TRangedProperty.ts index f5cf1e3d..858420d0 100644 --- a/js/TRangedProperty.ts +++ b/js/TRangedProperty.ts @@ -14,7 +14,7 @@ export type TRangedProperty = PhetioProperty & { range: Range; readonly export function isTRangedProperty( something: IntentionalAny ): something is TRangedProperty { return ( something instanceof ReadOnlyProperty || something instanceof TinyProperty ) && something.isSettable() && - // @ts-expect-error we are checking on the pressence, but can't use hasOwnProperty in case it is implemented wil es5 getters and setters + // @ts-expect-error we are checking on the pressence, but can't use hasOwnProperty in case it is implemented with es5 getters and setters !!something.range && !!something.rangeProperty; }