Skip to content

Commit

Permalink
refactor(sounds): type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
romelperez committed Jan 14, 2021
1 parent e5b1fb2 commit 4e7a9a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sounds/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ export type BleepsSettings = Record<BleepName, BleepSettings | undefined>;
// Bleeps Consumer Injection

export interface Bleep {
_settings: BleepsAudioGroupSettings & BleepPlayerSettings
_howl: Howl
play: () => void
pause: () => void
seek: (time: number) => void
stop: () => void
getIsPlaying: () => boolean
getDuration: () => number
unload: () => void

_settings: BleepsAudioGroupSettings & BleepPlayerSettings
_howl: Howl
}

export type Bleeps = Record<BleepName, Bleep>;

0 comments on commit 4e7a9a3

Please sign in to comment.