UNPKG

529 BPlain TextView Raw
1import * as store from './router/router'
2import type { OneRouter } from './interfaces/router'
3
4export const router: OneRouter.Router = {
5 navigate: store.navigate,
6 push: store.push,
7 dismiss: store.dismiss,
8 dismissAll: store.dismissAll,
9 canDismiss: store.canDismiss,
10 replace: store.replace,
11 back: store.goBack,
12 canGoBack: store.canGoBack,
13 setParams: (params) =>
14 store.setParams(
15 // TODO
16 params as any
17 ),
18 subscribe: store.subscribeToRootState,
19 onLoadState: store.subscribeToLoadingState,
20}