From 6e4915f85089058e4ea75c5e5eaa85f04b8f8f59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 26 Sep 2023 09:26:00 +0200 Subject: [PATCH] fix: fix EventEmitterAsyncResource type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- @types/events.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.34.1