mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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')
|