You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NOTE: this is the only type param that feels wrong because its default
17
+
// value is the default value to avoid breaking changes but it should be the
18
+
// generic version by default instead (string | symbol)
19
+
ChildrenNamesextendsstring|symbol=never,
20
+
// TODO: implement meta with a defineRoute macro
21
+
// Meta extends RouteMeta = RouteMeta,
21
22
>{
22
23
name: Name
23
24
path: Path
24
25
paramsRaw: ParamsRaw
25
26
params: Params
27
+
childrenNames: ChildrenNames
26
28
// TODO: implement meta with a defineRoute macro
27
-
meta: Meta
29
+
// meta: Meta
28
30
}
29
31
32
+
exporttypeRouteRecordInfoGeneric=RouteRecordInfo<
33
+
string|symbol,
34
+
string,
35
+
RouteParamsRawGeneric,
36
+
RouteParamsGeneric,
37
+
string|symbol
38
+
>
39
+
30
40
/**
31
41
* Convenience type to get the typed RouteMap or a generic one if not provided. It is extracted from the {@link TypesConfig} if it exists, it becomes {@link RouteMapGeneric} otherwise.
// the type allows for type params to distribute types:
61
+
// RouteLocationNormalizedLoadedLoaded<'/[a]' | '/'> will become RouteLocationNormalizedLoadedTyped<RouteMap>['/[a]'] | RouteLocationTypedList<RouteMap>['/']
62
+
// it's closer to what the end users uses but with the RouteMap type fixed so it doesn't
0 commit comments