@@ -189,9 +189,7 @@ export type RawRouteComponent = RouteComponent | Lazy<RouteComponent>
189189/**
190190 * Internal type for common properties among all kind of {@link RouteRecordRaw}.
191191 */
192- export interface _RouteRecordBase
193- extends PathParserOptions ,
194- _RouteRecordBaseMeta {
192+ export interface _RouteRecordBase extends PathParserOptions {
195193 /**
196194 * Path of the record. Should start with `/` unless the record is the child of
197195 * another record.
@@ -230,7 +228,7 @@ export interface _RouteRecordBase
230228 /**
231229 * Arbitrary data attached to the record.
232230 */
233- // meta?: RouteMeta
231+ meta ?: RouteMeta
234232
235233 /**
236234 * Array of nested routes.
@@ -243,12 +241,6 @@ export interface _RouteRecordBase
243241 props ?: _RouteRecordProps | Record < string , _RouteRecordProps >
244242}
245243
246- /**
247- * Default type for RouteMeta when not augmented.
248- * @internal
249- */
250- export type _RouteMetaBase = Record < string | number | symbol , unknown >
251-
252244/**
253245 * Interface to type `meta` fields in route records.
254246 *
@@ -265,33 +257,7 @@ export type _RouteMetaBase = Record<string | number | symbol, unknown>
265257 * }
266258 * ```
267259 */
268- export interface RouteMeta extends _RouteMetaBase { }
269-
270- /**
271- * Returns `true` if the passed `RouteMeta` type hasn't been augmented. Return `false` otherwise.
272- * @internal
273- */
274- export type IsRouteMetaBase < RM > = _RouteMetaBase extends RM ? true : false
275- /**
276- * Returns `true` if the passed `RouteMeta` type has been augmented with required fields. Return `false` otherwise.
277- * @internal
278- */
279- export type IsRouteMetaRequired < RM > = Partial < RM > extends RM ? false : true
280-
281- export type _RouteRecordBaseMeta = IsRouteMetaRequired < RouteMeta > extends true
282- ? {
283- /**
284- * Arbitrary data attached to the record. Required because the `RouteMeta` type has been augmented with required
285- * fields.
286- */
287- meta : RouteMeta
288- }
289- : {
290- /**
291- * Arbitrary data attached to the record.
292- */
293- meta ?: RouteMeta
294- }
260+ export interface RouteMeta extends Record < string | number | symbol , unknown > { }
295261
296262/**
297263 * Route Record defining one single component with the `component` option.
0 commit comments