apphouse
Version:
Component library for React that uses observable state management and theme-able components.
9 lines (8 loc) • 406 B
TypeScript
import { IStoreWithBase } from '../../context/context.interface';
import { Route } from './route.interface';
/**
* Defines the routes of the app and starts the router.
* @param routes Route[] containing the routes of the app.
* @param store IStoreWithBase<S, R> containing the store of the app.
*/
export declare function defineRoutes<S>(routes: Route[], store: IStoreWithBase<S>): IStoreWithBase<S>;