refactor: cleanup type definition
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 24 Sep 2023 14:58:55 +0000 (16:58 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 24 Sep 2023 14:58:55 +0000 (16:58 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
@types/events.d.ts

index 900377b45a4c4f3ffa71fab45c949fd1718d23c4..e74fe13840d4e2063b9959cf7ba61960320a6c4e 100644 (file)
@@ -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
     }
   }