Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 23, 2019
1 parent 24e618f commit 834e2c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import Vue from 'vue'
import { XEAjaxMethods } from 'xe-ajax'
import XEAjax from 'xe-ajax'

export interface VXEAjaxPlugin {
install(vue: typeof Vue, xAjax: typeof XEAjax): void;
}

/**
* A small wrapper for integrating xe-ajax to Vuejs.
*/
declare var VXEAjax;
declare var VXEAjax: VXEAjaxPlugin;

declare module 'vue/types/vue' {
interface Vue {
$ajax: XEAjaxMethods;
$ajax: typeof XEAjax;
}
}

Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-ajax",
"version": "1.6.0",
"version": "1.7.0",
"description": "A small wrapper for integrating xe-ajax to Vuejs.",
"main": "dist/index.common.js",
"unpkg": "dist/index.js",
Expand All @@ -13,12 +13,12 @@
},
"files": [
"dist",
"index.d.ts",
"index.js"
"index.js",
"*.d.ts"
],
"dependencies": {
"vue": "^2.5.22",
"xe-ajax": "^3.5.0"
"peerDependencies": {
"vue": "^2.6.10",
"xe-ajax": "^3.7.0"
},
"devDependencies": {
"@babel/core": "^7.4.4",
Expand Down

0 comments on commit 834e2c3

Please sign in to comment.