Skip to content

Commit

Permalink
Merge pull request #181 from mat813/fix-types
Browse files Browse the repository at this point in the history
fix: correct type problem on rest parameter
  • Loading branch information
titanism authored Jun 13, 2022
2 parents 112d462 + 61a4ab0 commit 04c48af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Timeout, Interval } from 'safe-timers';

export = Bree;

type AsyncFunction<A, O> = (...args: A) => Promise<O>;
type AsyncFunction<A extends any[], O> = (...args: A) => Promise<O>;

declare class Bree extends EventEmitter {
config: Bree.BreeConfigs;
Expand Down

0 comments on commit 04c48af

Please sign in to comment.