Skip to content

Commit

Permalink
fix(services/apollo): pass args for init
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Dec 17, 2018
1 parent 7ccba9f commit ca88c0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/services/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default class ApolloService extends Service {
throw new Error('no Apollo service options defined');
}

init() {
super.init();
init(...args: any[]) {
super.init(...args);

const owner = getOwner(this);
if (owner) {
Expand Down
7 changes: 7 additions & 0 deletions types/@ember/object/core.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import _CoreObject from 'ember__object/core';
export * from 'ember__object/core';

export default class CoreObject extends _CoreObject {
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/31481
init(...args: any): void;
}

0 comments on commit ca88c0c

Please sign in to comment.