Skip to content

Commit

Permalink
Fix #93
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 5, 2022
1 parent 3e5bd10 commit 2725900
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Expand Up @@ -14,7 +14,7 @@ type DatalessEventNames<EventData> = {

declare const listenerAdded: unique symbol;
declare const listenerRemoved: unique symbol;
export type OmnipresentEventData = {[listenerAdded]: Emittery.ListenerChangedData; [listenerRemoved]: Emittery.ListenerChangedData};
type _OmnipresentEventData = {[listenerAdded]: Emittery.ListenerChangedData; [listenerRemoved]: Emittery.ListenerChangedData};

/**
Emittery can collect and log debug information.
Expand Down Expand Up @@ -165,7 +165,7 @@ emitter.emit('other');
*/
declare class Emittery<
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.
AllEventData = EventData & OmnipresentEventData,
AllEventData = EventData & _OmnipresentEventData,
DatalessEvents = DatalessEventNames<EventData>
> {
/**
Expand Down Expand Up @@ -592,6 +592,8 @@ declare namespace Emittery {
*/
eventName?: EventName;
}

type OmnipresentEventData = _OmnipresentEventData;
}

export = Emittery;
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -53,7 +53,7 @@
"delay": "^4.3.0",
"nyc": "^15.0.0",
"p-event": "^4.1.0",
"tsd": "^0.16.0",
"tsd": "^0.19.1",
"xo": "^0.39.0"
},
"nyc": {
Expand Down

0 comments on commit 2725900

Please sign in to comment.