emittery 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ type DatalessEventNames<EventData> = {
|
|
|
14
14
|
|
|
15
15
|
declare const listenerAdded: unique symbol;
|
|
16
16
|
declare const listenerRemoved: unique symbol;
|
|
17
|
-
type
|
|
17
|
+
type _OmnipresentEventData = {[listenerAdded]: Emittery.ListenerChangedData; [listenerRemoved]: Emittery.ListenerChangedData};
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
Emittery can collect and log debug information.
|
|
@@ -165,7 +165,7 @@ emitter.emit('other');
|
|
|
165
165
|
*/
|
|
166
166
|
declare class Emittery<
|
|
167
167
|
EventData = Record<string, any>, // When https://github.com/microsoft/TypeScript/issues/1863 ships, we can switch this to have an index signature including Symbols. If you want to use symbol keys right now, you need to pass an interface with those symbol keys explicitly listed.
|
|
168
|
-
AllEventData = EventData &
|
|
168
|
+
AllEventData = EventData & _OmnipresentEventData,
|
|
169
169
|
DatalessEvents = DatalessEventNames<EventData>
|
|
170
170
|
> {
|
|
171
171
|
/**
|
|
@@ -592,6 +592,8 @@ declare namespace Emittery {
|
|
|
592
592
|
*/
|
|
593
593
|
eventName?: EventName;
|
|
594
594
|
}
|
|
595
|
+
|
|
596
|
+
type OmnipresentEventData = _OmnipresentEventData;
|
|
595
597
|
}
|
|
596
598
|
|
|
597
599
|
export = Emittery;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "emittery",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Simple and modern async event emitter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/emittery",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"delay": "^4.3.0",
|
|
54
54
|
"nyc": "^15.0.0",
|
|
55
55
|
"p-event": "^4.1.0",
|
|
56
|
-
"tsd": "^0.
|
|
56
|
+
"tsd": "^0.19.1",
|
|
57
57
|
"xo": "^0.39.0"
|
|
58
58
|
},
|
|
59
59
|
"nyc": {
|