Skip to content

Commit

Permalink
feat(router): fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jwx committed Aug 14, 2019
1 parent 6a34ab3 commit a75c569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/__tests__/router/configuration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Configuration', function () {
const host = ctx.doc.createElement('div');
ctx.doc.body.appendChild(host as any);

const au = ctx.wnd['au'] = new Aurelia(container)
const au = new Aurelia(container)
.register(
DebugConfiguration,
!config ? RouterConfiguration : RouterConfiguration.customize(config),
Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const RouterConfiguration = {
* Parameter is either a config object that's passed to Router's activate
* or a config function that's called instead of Router's activate.
*/
customize(config?: IRouterOptions | (() => void)) {
customize(config?: IRouterOptions | ((router: IRouter) => void)) {
if (config === undefined) {
configurationOptions = {};
configurationCall = (router: IRouter) => {
Expand Down

0 comments on commit a75c569

Please sign in to comment.