Skip to content

Commit

Permalink
Fix IMediaInstance interface event off callback type (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
qtiki authored Sep 15, 2021
1 parent 121e2dd commit d096641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/interfaces/IMediaInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ interface IMediaInstance
on(event: 'progress', fn: (progress: number, duration: number) => void, context?: any): this;
on(event: 'resumed' | 'paused' | 'start' | 'end' | 'stop', fn: () => void, context?: any): this;
off(event: 'resumed' | 'paused' | 'start' | 'end' | 'progress' | 'pause' | 'stop',
// eslint-disable-next-line @typescript-eslint/ban-types
fn: Function, context?: any, once?: boolean): this;
fn?: (...args: any[]) => void, context?: any, once?: boolean): this;

/**
* Fired when the sound when progress updates.
Expand Down

0 comments on commit d096641

Please sign in to comment.