Files
streetmerchant/src/types/play-sound.d.ts
T
Jef LeCompte 9ad9793dc1 chore: update dependencies (#874)
Additional linting fixes

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
2020-11-21 10:55:03 -05:00

26 lines
511 B
TypeScript

declare module 'play-sound' {
export interface Options {
players?: string[];
player?: string;
}
export type PlayOptions = Record<string, any>;
export interface PlaySound {
player: string;
play: ((file: string, callback: (error: Error) => void) => PlayerProcess) &
((
file: string,
options: PlayOptions,
callback: (error: Error) => void
) => PlayerProcess);
}
export interface PlayerProcess {
kill: () => void;
}
export default function (options?: Options): PlaySound;
}