EventEmitterOptions {
/**
* The type of async event.
- * @default new.target.name
+ * @default new.target.name if instantiated as a child class.
*/
name?: string
}
* @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