X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=%40types%2Fevents.d.ts;h=b5338939859c39642f667a2854d3da5ddf9b98df;hb=70eadc4ce4dd46bd46c655116135f9348d1af2ab;hp=ae0f8f50b59ec40297da691c52860f11defacbef;hpb=9ef45721cce15d1957aac6da65beec7fcfeb2e2a;p=poolifier.git diff --git a/@types/events.d.ts b/@types/events.d.ts index ae0f8f50..b5338939 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,6 +30,9 @@ declare module 'events' { * @since v17.4.0, v16.14.0 */ export class EventEmitterAsyncResource extends EventEmitter { + /** + * @param options Only optional in child class. + */ constructor (options?: EventEmitterAsyncResourceOptions) /** * Call all `destroy` hooks. This should only ever be called once. An error will