Files
frost-navigation/types/web.d.ts

38 lines
690 B
TypeScript
Raw Normal View History

2024-08-26 14:07:57 +08:00
import type {
ComputedRef, DeepReadonly, PropType,
Ref, ShallowRef, UnwrapNestedRefs,
} from 'vue';
import type {
RouteLocationRaw,
} from 'vue-router';
declare global {
// window
interface Window {
}
// Vue
type VueComputedRef<T> = ComputedRef<T>;
type VuePropType<T> = PropType<T>;
type VueReactive<T> = UnwrapNestedRefs<T>;
type VueReadonly<T> = DeepReadonly<UnwrapNestedRefs<T>>;
type VueRef<T> = Ref<T>;
type VueShallowRef<T> = ShallowRef<T>;
// Vue Router
type VueRouteLocationRaw = RouteLocationRaw;
}
declare module 'vue-router' {
interface RouteMeta {
iconClass?: string;
showInAside?: boolean;
title?: string;
}
}
2024-08-26 14:07:57 +08:00
export { };