Skip to content

Commit

Permalink
chore(types): fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Jan 13, 2019
1 parent a459d6d commit 310c8ef
Show file tree
Hide file tree
Showing 2 changed files with 907 additions and 1,218 deletions.
3 changes: 2 additions & 1 deletion addon/event-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import EmberObject from '@ember/object';
import { beforeMethod } from 'patch-method';
import Component from '@ember/component';
import { Constructor } from './utils/type-helpers';
import { IDestroyable } from 'ember-lifeline/interfaces';

function NOOP(): void {}

Expand Down Expand Up @@ -61,7 +62,7 @@ export default decoratorWithRequiredParams(function(
// kind: 'initializer',
...ANONYMOUS,
placement: 'own',
initializer() {
initializer(this: IDestroyable) {
addEventListener(
this,
// @ts-ignore https://github.com/ember-lifeline/ember-lifeline/pull/249
Expand Down
Loading

0 comments on commit 310c8ef

Please sign in to comment.