EventEmitterOptions {
/**
* The type of async event.
- * @default new.target.name if instantiated from a child class.
+ * @default new.target.name if instantiated as a child class.
*/
name?: string
}
* @since v17.4.0, v16.14.0
*/
export class EventEmitterAsyncResource extends EventEmitter {
- constructor (options: EventEmitterAsyncResourceOptions)
+ /**
+ * @param options Only optional in child class.
+ */
+ 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