We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MotionPlugin
1 parent 8e0d108 commit f6983dbCopy full SHA for f6983db
src/plugin/index.ts
@@ -1,4 +1,4 @@
1
-import type { Plugin } from 'vue'
+import type { App } from 'vue'
2
import type { MotionPluginOptions, MotionVariants } from '../types'
3
4
import * as presets from '../presets'
@@ -7,8 +7,8 @@ import { slugify } from '../utils/slugify'
7
import { MotionComponent, MotionGroupComponent } from '../components'
8
import { CUSTOM_PRESETS } from '../utils/keys'
9
10
-export const MotionPlugin: Plugin = {
11
- install(app, options: MotionPluginOptions<string>) {
+export const MotionPlugin = {
+ install(app: App, options?: MotionPluginOptions<string>) {
12
// Register default `v-motion` directive
13
app.directive('motion', directive())
14
0 commit comments