From 7dacb1108f22af16cefffa9bd493c07c962ed1ba Mon Sep 17 00:00:00 2001 From: beefchimi Date: Thu, 23 Nov 2023 13:27:20 -0500 Subject: [PATCH] :bug: [Src] Clarify that fadeSec type is number --- src/Earwurm.ts | 2 +- src/Sound.ts | 2 +- src/Stack.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Earwurm.ts b/src/Earwurm.ts index 6c1da83..d55037f 100644 --- a/src/Earwurm.ts +++ b/src/Earwurm.ts @@ -28,7 +28,7 @@ export class Earwurm extends EmittenCommon { readonly #context = new AudioContext(); readonly #gainNode = this.#context.createGain(); - readonly #fadeSec = 0; + readonly #fadeSec: number = 0; readonly #request: ManagerConfig['request']; #library: Stack[] = []; #suspendId: TimeoutId = 0; diff --git a/src/Sound.ts b/src/Sound.ts index 22b2894..b319d76 100644 --- a/src/Sound.ts +++ b/src/Sound.ts @@ -13,7 +13,7 @@ export class Sound extends EmittenCommon { // "True private" properties readonly #source: AudioBufferSourceNode; readonly #gainNode: GainNode; - readonly #fadeSec = 0; + readonly #fadeSec: number = 0; #started = false; constructor( diff --git a/src/Stack.ts b/src/Stack.ts index 2c418b6..e12498c 100644 --- a/src/Stack.ts +++ b/src/Stack.ts @@ -34,7 +34,7 @@ export class Stack extends EmittenCommon { private _state: StackState = 'idle'; readonly #gainNode: GainNode; - readonly #fadeSec = 0; + readonly #fadeSec: number = 0; #totalSoundsCreated = 0; readonly #request: StackConfig['request']; #queue: Sound[] = [];