1234567891011121314151617181920 |
- 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<any>
- }
- declare module 'vue/types/vue' {
- interface Vue {
- $jsonp (url: string, param: IParam, timeout?: number): Promise<any>
- }
- }
- export default function install<T> (): PluginObject<T>
|