vue/types/plugin.d.ts
2022-05-27 17:26:55 +08:00

9 lines
197 B
TypeScript

import { Vue as _Vue } from './vue'
export type PluginFunction<T> = (Vue: typeof _Vue, options?: T) => void
export interface PluginObject<T> {
install: PluginFunction<T>
[key: string]: any
}