Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

Commit 2ece68b

Browse files
committed
#1 added options for axios
1 parent 9ea990f commit 2ece68b

19 files changed

+3415
-2899
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": ["env", "flow"],
3-
"plugins": ["add-module-exports", "transform-object-rest-spread"]
2+
"presets": ["@babel/env"],
3+
"plugins": ["@babel/plugin-syntax-object-rest-spread"]
44
}

.eslintrc

Lines changed: 0 additions & 26 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
{
2-
"editor.formatOnSave": true,
3-
"flow.enabled": true,
4-
"flow.runOnEdit": true,
5-
"flow.showStatus": true,
6-
"flow.stopFlowOnExit": true,
7-
"flow.useNPMPackagedFlow": true,
8-
"javascript.validate.enable": false,
9-
"typescript.validate.enable": false,
10-
"eslint.validate": ["javascript", "javascriptreact", "vue"],
11-
"files.associations": {
12-
"*.html": "vue-html"
13-
}
2+
"editor.formatOnSave": true
143
}

dist/vue-october-requests.js

Lines changed: 0 additions & 201 deletions
This file was deleted.

dist/vue-october-requests.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { AxiosStatic } from "axios";
2+
import { PluginObject } from "vue/types/plugin";
3+
import { RequestFunction } from "./request";
4+
export interface PluginOptions {
5+
readonly axios: AxiosStatic;
6+
readonly timeout?: number;
7+
readonly headers?: Readonly<Record<string, string>>;
8+
}
9+
declare const plugin: PluginObject<PluginOptions>;
10+
export default plugin;
11+
declare module "vue/types/vue" {
12+
interface Vue {
13+
$october: {
14+
request: RequestFunction;
15+
};
16+
}
17+
}

0 commit comments

Comments
 (0)