From 2db73fbffc7c1c02347c6b61b0a1bcac420e09d3 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 23 Mar 2022 16:09:25 -0600 Subject: [PATCH] add return types to ValueChangeSoundGenerator methods, https://github.com/phetsims/sun/issues/697 --- js/sound-generators/ValueChangeSoundGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/sound-generators/ValueChangeSoundGenerator.ts b/js/sound-generators/ValueChangeSoundGenerator.ts index c5cd9a4c..9bc585b9 100644 --- a/js/sound-generators/ValueChangeSoundGenerator.ts +++ b/js/sound-generators/ValueChangeSoundGenerator.ts @@ -226,7 +226,7 @@ class ValueChangeSoundGenerator extends SoundGenerator { * Check if the new value has reached threshold and, if so, play the appropriate sound. If no threshold has been * reached or crossed and the new value is not at the min or max, no sound will be played. */ - playSoundIfThresholdReached( newValue: number, oldValue: number ) { + playSoundIfThresholdReached( newValue: number, oldValue: number ): void { if ( newValue !== oldValue ) { const constrainedNewValue = this.constrainValue( newValue ); const constrainedOldValue = this.constrainValue( oldValue ); @@ -246,7 +246,7 @@ class ValueChangeSoundGenerator extends SoundGenerator { * Play the appropriate sound for the change in value indicated by the provided new and old values. This will almost * always play a sound, but there are some exceptions. See the code and comments for details. */ - playSoundForValueChange( newValue: number, oldValue: number ) { + playSoundForValueChange( newValue: number, oldValue: number ): void { const constrainedNewValue = this.constrainValue( newValue ); const constrainedOldValue = this.constrainValue( oldValue ); if ( constrainedNewValue !== constrainedOldValue ||