Skip to content

Commit

Permalink
fix(runtime): fix a couple typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Mar 12, 2017
1 parent 099e8e0 commit d66715e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/runtime/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ export default class Router extends DenaliObject implements RouterDSL {
*/
private logger: Logger;

/**
* The application container
*/
public container: Container;

constructor(options: { container: Container, logger: Logger }) {
super();
this.container = options.container;
Expand Down Expand Up @@ -425,7 +430,7 @@ export default class Router extends DenaliObject implements RouterDSL {
* let namespace = router.namespace('users');
* namespace.get('sign-in');
*/
public namespace(namespace: string, fn: (wrapper: {}) => void): void {
public namespace(namespace: string, fn: (wrapper: RouterDSL) => void): void {
let router = this;
if (namespace.endsWith('/')) {
namespace = namespace.slice(0, namespace.length - 1);
Expand Down

0 comments on commit d66715e

Please sign in to comment.