From f6983db6cb35f21bf5cf71d25a2a87450c918d53 Mon Sep 17 00:00:00 2001 From: CJBoy <78361904+cjboy76@users.noreply.github.com> Date: Fri, 6 Sep 2024 21:27:03 +0800 Subject: [PATCH] fix(types): improve `MotionPlugin` types (#231) --- src/plugin/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin/index.ts b/src/plugin/index.ts index b20515a8..fa3a8049 100644 --- a/src/plugin/index.ts +++ b/src/plugin/index.ts @@ -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' @@ -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) { +export const MotionPlugin = { + install(app: App, options?: MotionPluginOptions) { // Register default `v-motion` directive app.directive('motion', directive())