UNPKG

ember-source

Version:

A JavaScript framework for creating ambitious web applications

15 lines (12 loc) 535 B
// This module provides an 'extension' to the `@ember/service` module from the // `@ember/routing` package, so that users can rely on `@service('router')` type // checking and `Owner.lookup('service:router')` returning `RouterService`. Our // type publishing infrastructure will pass it through unchanged, so end users // will get this extension. import '@ember/service'; import type RouterService from '@ember/routing/router-service'; declare module '@ember/service' { export interface Registry { router: RouterService; } }