import Vue from 'vue' import { PluginObject } from 'vue/types/plugin' interface IParam { callbackQuery?: string callbackName?: string [key: string]: any } declare module 'vue' { function jsonp (url: string, param: IParam, timeout?: number): Promise } declare module 'vue/types/vue' { interface Vue { $jsonp (url: string, param: IParam, timeout?: number): Promise } } export default function install (): PluginObject