Skip to content

Commit 4add7e0

Browse files
author
fanwei
committed
feat(router): export type RouteLocationRaw
1 parent afef4b9 commit 4add7e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vue-router.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import Vue from 'vue'
22
import { computed, ComputedRef, getCurrentInstance, reactive, shallowRef } from '@vue/composition-api'
3-
import VueRouter, { NavigationGuard, Route, RouterOptions, RouteConfig } from 'vue-router'
3+
import VueRouter, { NavigationGuard, Route, RouterOptions, RouteConfig, RawLocation } from 'vue-router'
44
import { OUT_OF_SCOPE, warn } from './utils'
55

66

77
export type RouteRecordRaw = RouteConfig
8+
export type RouteLocationRaw = RawLocation
9+
810

911
export interface Router extends VueRouter {
1012
isReady: () => Promise<void>

0 commit comments

Comments
 (0)