* @param globalOptions - global route options
*/
export function createRouterMatcher(
- routes: RouteRecordRaw[],
+ routes: Readonly<RouteRecordRaw[]>,
globalOptions: PathParserOptions
): RouterMatcher {
// normalized ordered array of matchers
/**
* Initial list of routes that should be added to the router.
*/
- routes: RouteRecordRaw[]
+ routes: Readonly<RouteRecordRaw[]>
/**
* Function to control scrolling when navigating between pages. Can return a
* Promise to delay scrolling. Check {@link ScrollBehavior}.