From 85126db3ff113e81dc8ad41ae045ba3ba2f334c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 24 Sep 2023 16:58:55 +0200 Subject: [PATCH] refactor: cleanup type definition 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/@types/events.d.ts b/@types/events.d.ts index 900377b4..e74fe138 100644 --- a/@types/events.d.ts +++ b/@types/events.d.ts @@ -38,11 +38,11 @@ declare module 'events' { */ emitDestroy (): AsyncResource /** The unique asyncId assigned to the resource. */ - get asyncId (): number + readonly asyncId: number /** The same triggerAsyncId that is passed to the AsyncResource constructor. */ - get triggerAsyncId (): number + readonly triggerAsyncId: number /** The underlying AsyncResource */ - get asyncResource (): AsyncResource & { + readonly asyncResource: AsyncResource & { readonly eventEmitter: EventEmitterAsyncResource } } -- 2.34.1