Skip to content

Commit f6983db

Browse files
authoredSep 6, 2024
fix(types): improve MotionPlugin types (#231)
1 parent 8e0d108 commit f6983db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/plugin/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Plugin } from 'vue'
1+
import type { App } from 'vue'
22
import type { MotionPluginOptions, MotionVariants } from '../types'
33

44
import * as presets from '../presets'
@@ -7,8 +7,8 @@ import { slugify } from '../utils/slugify'
77
import { MotionComponent, MotionGroupComponent } from '../components'
88
import { CUSTOM_PRESETS } from '../utils/keys'
99

10-
export const MotionPlugin: Plugin = {
11-
install(app, options: MotionPluginOptions<string>) {
10+
export const MotionPlugin = {
11+
install(app: App, options?: MotionPluginOptions<string>) {
1212
// Register default `v-motion` directive
1313
app.directive('motion', directive())
1414

0 commit comments

Comments
 (0)