UNPKG

v-shared-element

Version:

Declarative shared-element transitions between pages for Vue.js and Nuxt.js

14 lines (13 loc) 1.18 kB
import { PluginObject as PluginObject2 } from 'vue-2/types/plugin'; import { Plugin as PluginObject3 } from 'vue-3'; import { sharedElementMixin } from './mixin'; import { ISharedElementOptions } from './options'; type PluginObject = PluginObject2<Partial<ISharedElementOptions>> & PluginObject3; declare const SharedElementDirective: PluginObject; declare const createSharedElementDirective: (options?: Partial<ISharedElementOptions>) => PluginObject3; declare const NuxtSharedElementRouteGuard: (context: { app: { router: import("vue-router-3/types/router").VueRouter & import("vue-router-4").Router; }; }) => void, SharedElementRouteGuard: import("vue-router-3/types/router").NavigationGuard<import("vue-2").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue-2").default<Record<string, any>, Record<string, any>, never, never, any>>> & import("vue-router-4").NavigationGuard & import("vue-router-4").NavigationGuardWithThis<undefined>; export { createSharedElementDirective, SharedElementDirective, SharedElementRouteGuard, NuxtSharedElementRouteGuard, sharedElementMixin, ISharedElementOptions };