vue-router
Advanced tools
Comparing version 4.4.1 to 4.4.2
@@ -164,8 +164,2 @@ import { AllowedComponentProps } from 'vue'; | ||
/** | ||
* Returns `true` if the passed `RouteMeta` type has been augmented with required fields. Return `false` otherwise. | ||
* @internal | ||
*/ | ||
declare type IsRouteMetaRequired<RM> = Partial<RM> extends RM ? false : true; | ||
declare type Lazy<T> = () => Promise<T>; | ||
@@ -897,12 +891,6 @@ | ||
*/ | ||
export declare interface RouteMeta extends _RouteMetaBase { | ||
export declare interface RouteMeta extends Record<string | number | symbol, unknown> { | ||
} | ||
/** | ||
* Default type for RouteMeta when not augmented. | ||
* @internal | ||
*/ | ||
export declare type _RouteMetaBase = Record<string | number | symbol, unknown>; | ||
/** | ||
* Generate a type safe params for a route location. Requires the name of the route to be passed as a generic. | ||
@@ -1118,3 +1106,3 @@ * @see {@link RouteParamsGeneric} | ||
*/ | ||
export declare interface _RouteRecordBase extends PathParserOptions, _RouteRecordBaseMeta { | ||
export declare interface _RouteRecordBase extends PathParserOptions { | ||
/** | ||
@@ -1151,2 +1139,3 @@ * Path of the record. Should start with `/` unless the record is the child of | ||
*/ | ||
meta?: RouteMeta; | ||
/** | ||
@@ -1162,15 +1151,2 @@ * Array of nested routes. | ||
declare type _RouteRecordBaseMeta = IsRouteMetaRequired<RouteMeta> extends true ? { | ||
/** | ||
* Arbitrary data attached to the record. Required because the `RouteMeta` type has been augmented with required | ||
* fields. | ||
*/ | ||
meta: RouteMeta; | ||
} : { | ||
/** | ||
* Arbitrary data attached to the record. | ||
*/ | ||
meta?: RouteMeta; | ||
}; | ||
/** | ||
@@ -1177,0 +1153,0 @@ * Helper type to define a Typed `RouteRecord` |
/*! | ||
* vue-router v4.4.1 | ||
* vue-router v4.4.2 | ||
* (c) 2024 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
{ | ||
"name": "vue-router", | ||
"version": "4.4.1", | ||
"version": "4.4.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "unpkg": "dist/vue-router.global.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
825974
19761