plugin.d.ts 263 B

12345678910
  1. import { Vue as _Vue } from './vue';
  2. export type PluginFunction<T> = (Vue: typeof _Vue, options?: T) => void;
  3. export interface PluginObject<T> {
  4. install: PluginFunction<T>;
  5. [key: string]: any;
  6. }
  7. export type Plugin<T> = PluginFunction<T> | PluginObject<T>;