From: Jérôme Benoit Date: Tue, 26 Sep 2023 07:26:00 +0000 (+0200) Subject: fix: fix EventEmitterAsyncResource type X-Git-Tag: v2.7.5~41 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;ds=inline;h=6e4915f85089058e4ea75c5e5eaa85f04b8f8f59;p=poolifier.git fix: fix EventEmitterAsyncResource type Signed-off-by: Jérôme Benoit --- diff --git a/@types/events.d.ts b/@types/events.d.ts index a0291fe8..b5338939 100644 --- a/@types/events.d.ts +++ b/@types/events.d.ts @@ -30,7 +30,10 @@ declare module 'events' { * @since v17.4.0, v16.14.0 */ export class EventEmitterAsyncResource extends EventEmitter { - constructor (options: EventEmitterAsyncResourceOptions) + /** + * @param options Only optional in child class. + */ + 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