Skip to content

Commit

Permalink
revert: refactor: rename emitReserved to _emitReserved to improve man…
Browse files Browse the repository at this point in the history
…gling

This reverts commit 0852bda.

The impact on the final bundle size is negligible.
  • Loading branch information
darrachequesne committed Apr 10, 2024
1 parent 28c9ed4 commit 4476b52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Emitter<
* @param ev Reserved event name
* @param args Arguments to emit along with the event
*/
protected _emitReserved<Ev extends EventNames<ReservedEvents>>(
protected emitReserved<Ev extends EventNames<ReservedEvents>>(
ev: Ev,
...args: EventParams<ReservedEvents, Ev>
): this;
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Emitter.prototype.emit = function(event){
};

// alias used for reserved events (protected method)
Emitter.prototype._emitReserved = Emitter.prototype.emit;
Emitter.prototype.emitReserved = Emitter.prototype.emit;

/**
* Return array of callbacks for `event`.
Expand Down
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Emitter.prototype.emit = function(event){
};

// alias used for reserved events (protected method)
Emitter.prototype._emitReserved = Emitter.prototype.emit;
Emitter.prototype.emitReserved = Emitter.prototype.emit;

/**
* Return array of callbacks for `event`.
Expand Down

0 comments on commit 4476b52

Please sign in to comment.