Type createRouter function

This commit is contained in:
RMidhunSuresh 2022-02-22 13:22:37 +05:30
parent c14e4f3eed
commit f28dfc6964
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}