borisyankov/DefinitelyTyped — pull request #1665 by apsk (2014-02-05 19:20:51+00:00)
Title: Ember: Improve routing-related typings

Links to corresponding stuff in official ember repository:
1. [Application.Router](https://github.com/emberjs/ember.js/blob/master/packages/ember-application/lib/system/application.js#L233)
2. [Router.map](https://github.com/emberjs/ember.js/blob/master/packages/ember-routing/lib/system/router.js#L714)
3. [RouterDSL](https://github.com/emberjs/ember.js/blob/master/packages/ember-routing/lib/system/dsl.js)

With latest ember, this stuff is necessary even in the [beginning of official tutorial](http://emberjs.com/guides/getting-started/adding-a-route-and-template/).
It is now possible to do something like:

```javascript
var App = Ember.Application.create();

App.Router.map(function () {

this.resource('topCharts', function () {
this.route('choose', { path: '/' });
this.route('albums');
this.route('songs');
this.route('artists');
this.route('playlists');
});
});
```