Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
devlato authored Aug 19, 2020
1 parent 34f0703 commit 2250371
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
// Mike Coakley <[email protected]>

declare module 'async-wait-until' {
type WaitPredicateResult = any;
type WaitPredicate = () => WaitPredicateResult;
type WaitUntil = (fn: WaitPredicate, timeout?: number, interval?: number) => Promise<WaitPredicateResult>;
type WaitPredicate<T> = () => T | null | undefined | false | '' | 0;
type WaitUntil = <T>(fn: WaitPredicate<T>, timeout?: number, interval?: number) => Promise<T>;

const waitUntil: WaitUntil;

Expand Down

0 comments on commit 2250371

Please sign in to comment.