Skip to content

Commit 2663560

Browse files
committed
fix: type mismatch for plugin installation
1 parent 5e4f390 commit 2663560

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/vuebugger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vingy/vuebugger",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Vue devtools plugin to debug anything.",
55
"keywords": [
66
"composable",

packages/vuebugger/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { Plugin } from 'vue'
1+
import type { App, Plugin } from 'vue'
22
import { setUidGenerator } from './debug'
33
import { setupComposableDevtools } from './devtools'
44
import { PluginOptions } from './types'
55

66
export { debug } from './debug'
77

8-
const plugin: Plugin<PluginOptions> = {
9-
install: (app, options) => {
8+
const plugin: Plugin<PluginOptions | undefined> = {
9+
install: (app: App, options?: PluginOptions) => {
1010
if (!import.meta.env.DEV) return
1111
if (options?.uidFn) setUidGenerator(options.uidFn)
1212
setupComposableDevtools(app)

0 commit comments

Comments
 (0)