From: Jérôme Benoit Date: Sun, 24 Sep 2023 14:58:55 +0000 (+0200) Subject: refactor: cleanup type definition X-Git-Tag: v2.7.3~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=85126db3ff113e81dc8ad41ae045ba3ba2f334c5;p=poolifier.git refactor: cleanup type definition Signed-off-by: Jérôme Benoit --- 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 } }