Routes
Context
: { routes
: { clearRoutes
(): void; config
(options
: RoutesConfigOptions): void; hasRoute
(route
: string): boolean; navigate
(route
: string): void; register
(route
: string, handler
: (() => void)): Route; validateRoutes
(): Promise<boolean>; }; }
Type declaration
-
routes: {
clearRoutes(): void;
config(options: RoutesConfigOptions): void;
hasRoute(route: string): boolean;
navigate(route: string): void;
register(route: string, handler: (() => void)): Route;
validateRoutes(): Promise<boolean>;
}
-
clearRoutes:function
- clearRoutes(): void
-
Returns void
-
config:function
-
hasRoute:function
- hasRoute(route: string): boolean
-
Returns boolean
-
navigate:function
- navigate(route: string): void
-
Returns void
-
register:function
- register(route: string, handler: (() => void)): Route
-
Parameters
-
route: string
-
handler: (() => void)
-
validateRoutes:function
- validateRoutes(): Promise<boolean>
-
Returns Promise<boolean>