repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: refine comment decorator
[poolifier.git]
/
@types
/
events.d.ts
diff --git
a/@types/events.d.ts
b/@types/events.d.ts
index ae0f8f50b59ec40297da691c52860f11defacbef..b5338939859c39642f667a2854d3da5ddf9b98df 100644
(file)
--- a/
@types/events.d.ts
+++ b/
@types/events.d.ts
@@
-14,7
+14,7
@@
declare module 'events' {
EventEmitterOptions {
/**
* The type of async event.
EventEmitterOptions {
/**
* The type of async event.
- * @default new.target.name
+ * @default new.target.name
if instantiated as a child class.
*/
name?: string
}
*/
name?: string
}
@@
-30,6
+30,9
@@
declare module 'events' {
* @since v17.4.0, v16.14.0
*/
export class EventEmitterAsyncResource extends EventEmitter {
* @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
constructor (options?: EventEmitterAsyncResourceOptions)
/**
* Call all `destroy` hooks. This should only ever be called once. An error will