Skip to content

Commit

Permalink
Merge pull request #295 from huajun07/fix/add-ready-type
Browse files Browse the repository at this point in the history
fix: Add ready function type definition
  • Loading branch information
Kikobeats authored Jul 1, 2022
2 parents 9b7c65b + 7d58879 commit 7af3338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class Pool<T> extends EventEmitter {
clear(): Promise<void>;
use<U>(cb: (resource: T) => U | Promise<U>): Promise<U>;
isBorrowedResource(resource: T): boolean;
ready(): Promise<void>;
}

export interface Factory<T> {
Expand Down

0 comments on commit 7af3338

Please sign in to comment.