vue/types/plugin.d.ts
2016-09-06 21:28:17 +08:00

9 lines
201 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;
}