diff --git a/index.d.ts b/index.d.ts index 5aa6efa..49a74e1 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 f0794b8..e0d5497 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 d933e60..b2e5c3f 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`.