X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=%40types%2Fevents.d.ts;h=a0291fe8099abeea827af9d7a353871d8f0ee0a8;hb=c6c8dcf68b2d4e21215ce421c5632fe93e1e8a3e;hp=ae0f8f50b59ec40297da691c52860f11defacbef;hpb=9ef45721cce15d1957aac6da65beec7fcfeb2e2a;p=poolifier.git diff --git a/@types/events.d.ts b/@types/events.d.ts index ae0f8f50..a0291fe8 100644 --- a/@types/events.d.ts +++ b/@types/events.d.ts @@ -14,7 +14,7 @@ declare module 'events' { EventEmitterOptions { /** * The type of async event. - * @default new.target.name + * @default new.target.name if instantiated as a child class. */ name?: string } @@ -30,7 +30,7 @@ declare module 'events' { * @since v17.4.0, v16.14.0 */ export class EventEmitterAsyncResource extends EventEmitter { - constructor (options?: EventEmitterAsyncResourceOptions) + 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