forked from mystiq/hydrogen-web
Type createRouter function
This commit is contained in:
parent
c14e4f3eed
commit
f28dfc6964
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ export function createNavigation(): Navigation<SegmentType> {
|
|||
return new Navigation(allowsChild);
|
||||
}
|
||||
|
||||
export function createRouter({history, navigation}) {
|
||||
export function createRouter({history, navigation}: {history: History, navigation: Navigation<SegmentType>}): URLRouter<SegmentType> {
|
||||
return new URLRouter(history, navigation, parseUrlPath, stringifyPath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue