build(deps): bump poolifier
[poolifier.git] / @types / events.d.ts
index ae0f8f50b59ec40297da691c52860f11defacbef..1432a57e0eb6e256ea03fb1f40365bfb8b8067e5 100644 (file)
@@ -14,7 +14,7 @@ declare module 'events' {
     EventEmitterOptions {
     /**
      * The type of async event.
-     * @default new.target.name
+     * @default new.target.name if instantiated from a child class.
      */
     name?: string
   }
@@ -30,7 +30,7 @@ declare module 'events' {
    * @since v17.4.0, v16.14.0
    */
   export class EventEmitterAsyncResource extends EventEmitter {
-    constructor (options?: EventEmitterAsyncResourceOptions)
+    constructor (options: EventEmitterAsyncResourceOptions)
     /**
      * Call all `destroy` hooks. This should only ever be called once. An error will
      * be thrown if it is called more than once. This **must** be manually called. If