mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 10:27:15 +00:00
11 lines
374 B
TypeScript
11 lines
374 B
TypeScript
import type { InjectionKey } from 'vue'
|
|
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
|
|
|
export interface LayoutMeta {
|
|
isCurrent: (route: RouteLocationNormalizedLoaded) => boolean
|
|
}
|
|
|
|
export const LayoutMetaSymbol: InjectionKey<LayoutMeta> = Symbol('layout-meta')
|
|
|
|
export const PageRouteSymbol: InjectionKey<RouteLocationNormalizedLoaded> = Symbol('route')
|