Skip to content

Commit d04cfe6

Browse files
authored
Merge pull request #93 from ivankolev/master
(fix): OpaqueToken to InjectionToken, with proper generics. Fixes #93
2 parents ef809f4 + f271411 commit d04cfe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/localize-router.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Inject, InjectionToken, Provider } from '@angular/core';
2+
import { Routes } from '@angular/router';
23
import { LocalizeRouterModule } from './localize-router.module';
34

45
/**
@@ -11,7 +12,7 @@ export const LOCALIZE_ROUTER_FORROOT_GUARD = new InjectionToken<LocalizeRouterMo
1112
* Static provider for keeping track of routes
1213
* @type {InjectionToken<Routes[]>}
1314
*/
14-
export const RAW_ROUTES = new InjectionToken('RAW_ROUTES');
15+
export const RAW_ROUTES: InjectionToken<Routes[]> = new InjectionToken<Routes[]>('RAW_ROUTES');
1516

1617
/**
1718
* Type for Caching of default language

0 commit comments

Comments
 (0)