diff --git a/index.d.ts b/index.d.ts index 49a74e1..5aa6efa 100644 --- a/index.d.ts +++ b/index.d.ts @@ -130,7 +130,7 @@ export class Emitter< * @param ev Reserved event name * @param args Arguments to emit along with the event */ - protected emitReserved>( + protected _emitReserved>( ev: Ev, ...args: EventParams ): this; diff --git a/index.js b/index.js index e0d5497..f0794b8 100644 --- a/index.js +++ b/index.js @@ -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`. diff --git a/index.mjs b/index.mjs index b2e5c3f..d933e60 100644 --- a/index.mjs +++ b/index.mjs @@ -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`.