Skip to content

Commit

Permalink
Add isInteractiveHighlighting, see phetsims/scenery#1653
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 3, 2024
1 parent f04c0d2 commit d480c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/TRangedProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type TRangedProperty = PhetioProperty<number> & { 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;
}

Expand Down

0 comments on commit d480c06

Please sign in to comment.