import { Token, TokenType } from './pathTokenizer'
import { assign, isArray } from '../utils'
-export type PathParams = Record<string, string | readonly string[]>
+export type PathParams = Record<string, string | string[]>
/**
* A param in a url like `/users/:id`
*/
export type LocationQuery = Record<
string,
- LocationQueryValue | readonly LocationQueryValue[]
+ LocationQueryValue | LocationQueryValue[]
>
/**
* Loose {@link LocationQuery} object that can be passed to functions like
*/
export type LocationQueryRaw = Record<
string | number,
- LocationQueryValueRaw | readonly LocationQueryValueRaw[]
+ LocationQueryValueRaw | LocationQueryValueRaw[]
>
/**
* @internal
*/
export type RouteParamValueRaw = RouteParamValue | number | null | undefined
-export type RouteParams = Record<
- string,
- RouteParamValue | readonly RouteParamValue[]
->
+export type RouteParams = Record<string, RouteParamValue | RouteParamValue[]>
export type RouteParamsRaw = Record<
string,
- RouteParamValueRaw | readonly Exclude<RouteParamValueRaw, null | undefined>[]
+ RouteParamValueRaw | Exclude<RouteParamValueRaw, null | undefined>[]
>
/**
/**
* Array of nested routes.
*/
- children: Readonly<RouteRecordRaw[]>
+ children: RouteRecordRaw[]
/**
* Allow passing down params as props to the component rendered by `router-view`.
components?: Record<string, RawRouteComponent> | null | undefined
component?: never
- children: Readonly<RouteRecordRaw>[]
+ children: RouteRecordRaw[]
/**
* Allow passing down params as props to the component rendered by