Type createRouter function

This commit is contained in:
RMidhunSuresh 2022-02-22 13:22:37 +05:30
parent c14e4f3eed
commit f28dfc6964

View File

@ -39,7 +39,7 @@ export function createNavigation(): Navigation<SegmentType> {
return new Navigation(allowsChild); 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); return new URLRouter(history, navigation, parseUrlPath, stringifyPath);
} }