types: fix to prop typing (#8134)
This commit is contained in:
@@ -7,10 +7,10 @@ import {
|
||||
getCurrentInstance,
|
||||
ComponentPublicInstance,
|
||||
} from 'vue';
|
||||
import type { RouteLocation } from 'vue-router';
|
||||
import type { RouteLocationRaw } from 'vue-router';
|
||||
|
||||
export const routeProps = {
|
||||
to: [String, Object] as PropType<RouteLocation>,
|
||||
to: [String, Object] as PropType<RouteLocationRaw>,
|
||||
url: String,
|
||||
replace: Boolean,
|
||||
};
|
||||
|
||||
Vendored
+1
@@ -14,5 +14,6 @@ declare module 'vue' {
|
||||
onClosed?: EventHandler;
|
||||
onChange?: EventHandler;
|
||||
onToggle?: EventHandler;
|
||||
onClickStep?: EventHandler;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user