Skip to content

Commit

Permalink
fix(FFmpeggy): interface not compatible with TypedEmitter
Browse files Browse the repository at this point in the history
  • Loading branch information
mekwall committed May 21, 2022
1 parent 01fb24a commit 30112c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FFmpeggy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export type FFmpeggyProgressEvent = FFmpeggyProgress & {
percent?: number;
};

interface FFmpegEvents {
start: (ffmpegArgs: readonly string[]) => void;
type FFmpegEvents = {
error: (error: Error) => void;
start: (ffmpegArgs: readonly string[]) => void;
done: (file?: string) => void;
exit: (code?: number | null, error?: Error) => void;
probe: (probeResult: FFprobeResult) => void;
progress: (progress: FFmpeggyProgressEvent) => void;
writing: (file: string) => void;
}
};

const debug = createDebug("ffmpeggy");
export class FFmpeggy extends (EventEmitter as new () => TypedEmitter<FFmpegEvents>) {
Expand Down

0 comments on commit 30112c5

Please sign in to comment.