Skip to content

Commit

Permalink
types: improve MotionPlugin autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
cjboy76 committed Sep 5, 2024
1 parent c23efca commit f914b76
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 f914b76

Please sign in to comment.