Skip to content

Commit

Permalink
fix(types): improve MotionPlugin types (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjboy76 authored Sep 6, 2024
1 parent 8e0d108 commit f6983db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from 'vue'
import type { App } from 'vue'
import type { MotionPluginOptions, MotionVariants } from '../types'

import * as presets from '../presets'
Expand All @@ -7,8 +7,8 @@ import { slugify } from '../utils/slugify'
import { MotionComponent, MotionGroupComponent } from '../components'
import { CUSTOM_PRESETS } from '../utils/keys'

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

Expand Down

0 comments on commit f6983db

Please sign in to comment.