Skip to content

Commit

Permalink
use provided upstream type
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed May 15, 2024
1 parent dab36f6 commit 4da7279
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type EngineInfoByRoute = Record<string, { name: string }>;
let Router: typeof EmberRouter;

interface GetRoute {
(name: string): unknown;
(name: string): ReturnType<EmberRouter['_routerMicrolib']['getRoute']>;
isEmbroiderRouterHandler?: true;
}

Expand Down Expand Up @@ -81,7 +81,6 @@ if (macroCondition(getGlobalConfig<GlobalConfig>()['@embroider/core']?.active ??
let isSetup = super.setupRouter(...args);
let microLib = this._routerMicrolib;
if (!microLib.getRoute.isEmbroiderRouterHandler) {
// @ts-expect-error TODO fix this after merged to main
microLib.getRoute = this._handlerResolver(microLib.getRoute.bind(microLib));
}
return isSetup;
Expand Down

0 comments on commit 4da7279

Please sign in to comment.