Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

Commit 975f973

Browse files
committed
Update Ember.Controller methods and props
1 parent 76032f9 commit 975f973

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

types/ember/index.d.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ interface ControllerMixin extends ActionHandler {
283283
replaceRoute(name: string, ...args: any[]): void;
284284
transitionToRoute(name: string, ...args: any[]): void;
285285
model: any;
286-
queryParams: any;
287-
target: any;
286+
queryParams: string[] | { [key: string]: { type: string } }[];
287+
target: Object;
288288
}
289289
const ControllerMixin: Ember.Mixin<ControllerMixin>;
290290

@@ -582,17 +582,7 @@ namespace Ember {
582582
catalogEntriesByType(type: string): any[];
583583
}
584584

585-
class Controller extends Object.extend(ControllerMixin) {
586-
replaceRoute(name: string, ...args: any[]): void;
587-
transitionToRoute(name: string, ...args: any[]): void;
588-
controllers: {};
589-
model: any;
590-
needs: string[];
591-
queryParams: any;
592-
target: any;
593-
send(name: string, ...args: any[]): void;
594-
actions: ActionsHash;
595-
}
585+
class Controller extends Object.extend(ControllerMixin) {}
596586
/**
597587
Implements some standard methods for copying an object. Add this mixin to any object you
598588
create that can create a copy of itself. This mixin is added automatically to the built-in array.

0 commit comments

Comments
 (0)