unplugin-vue-router
Advanced tools
Comparing version 0.0.1 to 0.0.2
import * as unplugin from 'unplugin'; | ||
import { Options } from './types.js'; | ||
import { RouteParamsRaw, RouteParams, RouteMeta, RouteLocationNormalized, RouteRecordName, RouteLocationNormalizedLoaded, RouteQueryAndHash, RouteLocationOptions, NavigationGuardNext, Router, NavigationFailure, RouterLinkProps as RouterLinkProps$1, RouteLocation } from 'vue-router'; | ||
import { Options } from './options.js'; | ||
import { RouteParamsRaw, RouteParams, RouteMeta, RouteLocationNormalized, RouteRecordName, RouteLocationNormalizedLoaded, RouteQueryAndHash, RouteLocationOptions, RouteLocation, NavigationGuardNext, NavigationFailure, Router, RouterLinkProps as RouterLinkProps$1 } from 'vue-router'; | ||
import { Ref, AllowedComponentProps, ComponentCustomProps, VNodeProps, VNode } from 'vue'; | ||
declare type LiteralStringUnion<LiteralType, BaseType extends string = string> = LiteralType | (BaseType & Record<never, never>); | ||
interface RouteRecordInfo<Name extends string = string, Path extends string = string, ParamsRaw extends RouteParamsRaw = RouteParamsRaw, Params extends RouteParams = RouteParams, Meta extends RouteMeta = RouteMeta> { | ||
@@ -16,2 +14,5 @@ name: Name; | ||
declare type _RouteMapGeneric = Record<string, RouteRecordInfo>; | ||
declare type LiteralStringUnion<LiteralType, BaseType extends string = string> = LiteralType | (BaseType & Record<never, never>); | ||
interface RouteLocationNormalizedTyped<RouteMap extends _RouteMapGeneric = Record<string, RouteRecordInfo>, Name extends keyof RouteMap = keyof RouteMap> extends RouteLocationNormalized { | ||
@@ -55,2 +56,3 @@ name: Extract<Name, RouteRecordName>; | ||
}; | ||
declare type NavigationGuardReturn<RouteMap extends _RouteMapGeneric> = void | boolean | RouteLocationAsString<RouteMap> | RouteLocationAsRelativeTypedList<RouteMap>[keyof RouteMap] | RouteLocationAsPathTypedList<RouteMap>[keyof RouteMap]; | ||
@@ -66,2 +68,3 @@ interface NavigationGuardWithThis<T, RouteMap extends _RouteMapGeneric> { | ||
} | ||
interface _RouterTyped<RouteMap extends _RouteMapGeneric = _RouteMapGeneric> extends Omit<Router, 'resolve' | 'push' | 'replace' | 'beforeEach' | 'beforeResolve' | 'afterEach'> { | ||
@@ -76,2 +79,3 @@ currentRoute: Ref<RouteLocationNormalizedLoadedTypedList<RouteMap>[keyof RouteMap]>; | ||
} | ||
interface RouterLinkProps<RouteMap extends _RouteMapGeneric> extends Omit<RouterLinkProps$1, 'to'> { | ||
@@ -78,0 +82,0 @@ to: RouteLocationAsString<RouteMap> | RouteLocationAsRelativeTypedList<RouteMap>[keyof RouteMap] | RouteLocationAsPathTypedList<RouteMap>[keyof RouteMap]; |
@@ -1,2 +0,2 @@ | ||
import { Options } from './types.js'; | ||
import { Options } from './options.js'; | ||
@@ -3,0 +3,0 @@ declare function export_default(this: any, options: Options): void; |
import * as unplugin from 'unplugin'; | ||
import { Options } from './types.js'; | ||
import { Options } from './options.js'; | ||
@@ -4,0 +4,0 @@ declare const _default: (options?: Options | undefined) => unplugin.RollupPlugin; |
import * as unplugin from 'unplugin'; | ||
import { Options } from './types.js'; | ||
import { Options } from './options.js'; | ||
@@ -4,0 +4,0 @@ declare const _default: (options?: Options | undefined) => unplugin.VitePlugin; |
import * as webpack from 'webpack'; | ||
import { Options } from './types.js'; | ||
import { Options } from './options.js'; | ||
@@ -4,0 +4,0 @@ declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance; |
{ | ||
"name": "unplugin-vue-router", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"packageManager": "pnpm@7.1.7", | ||
@@ -5,0 +5,0 @@ "description": "Register global imports on demand for Vite and Webpack", |
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 too big to display
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 not supported yet
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 too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1241999
32
34671
24