| 8 | type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'> |
| 9 | |
| 10 | declare class Pool extends Dispatcher { |
| 11 | constructor (url: string | URL, options?: Pool.Options) |
| 12 | /** `true` after `pool.close()` has been called. */ |
| 13 | closed: boolean |
| 14 | /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ |
| 15 | destroyed: boolean |
| 16 | /** Aggregate stats for a Pool. */ |
| 17 | readonly stats: TPoolStats |
| 18 | |
| 19 | // Override dispatcher APIs. |
| 20 | override connect ( |
| 21 | options: PoolConnectOptions |
| 22 | ): Promise<Dispatcher.ConnectData> |
| 23 | override connect ( |
| 24 | options: PoolConnectOptions, |
| 25 | callback: (err: Error | null, data: Dispatcher.ConnectData) => void |
| 26 | ): void |
| 27 | } |
| 28 | |
| 29 | declare namespace Pool { |
| 30 | export type PoolStats = TPoolStats |
no outgoing calls
no test coverage detected
searching dependent graphs…