mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 14:37:41 +00:00
9ad9793dc1
Additional linting fixes Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
26 lines
511 B
TypeScript
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;
|
|
}
|