import Vue = require("../index"); import { PluginFunction, PluginObject } from "../plugin"; class Option { prefix: string; suffix: string; } const plugin: PluginObject = { install(Vue, option) { if (typeof option !== "undefined") { const {prefix, suffix} = option; } } } const installer: PluginFunction = function(Vue, option) { } Vue.use(plugin, new Option); Vue.use(installer, new Option);