Skip to content

Commit

Permalink
refactor(interceptors): TS3.0 PropertyKey handling
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 1, 2018
1 parent 30d65d4 commit 38372cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/interceptors/src/event-bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ export class StatelessEventBus implements
* @param e
*/
protected processEvent(ctx: api.InterceptorContext, e: api.Event) {
const iceps = this.handlers[e[0]];
const iceps = this.handlers[<any>e[0]];
if (!iceps) {
console.warn(`missing handler for event type: ${e[0]}`);
console.warn(`missing handler for event type: ${e[0].toString()}`);
return;
}
const n = iceps.length - 1;
Expand Down

0 comments on commit 38372cc

Please sign in to comment.