refactor: factor out inputs type check
[poolifier.git] / src / pools / pool.ts
index 992aaaf1099c7e341daf3bd1c6a937597018b5ea..49123f5466d7a0b19ad6f166a04b5f8efb088a46 100644 (file)
@@ -127,6 +127,10 @@ export interface IPool<
    * If it is `'dynamic'`, it provides the `max` property.
    */
   readonly type: PoolType
+  /**
+   * Pool maximum size.
+   */
+  readonly size: number
   /**
    * Pool worker nodes.
    */