File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
* @typedef {import('vue').Component } VueComponent
5
5
* @typedef {import('vue').DefineComponent } DefineComponent
6
6
* @typedef {import('axios').AxiosInstance } AxiosInstance
7
+ * @typedef {import('axios').AxiosRequestConfig } AxiosRequestConfig
7
8
* @typedef {Object<string, any> } AppConfig
8
9
* @typedef {import('./util/FormValidation').Form } Form
9
10
* @typedef {(app: VueApp, store: VueStore<any>) => void } BootingCallback
@@ -95,10 +96,10 @@ export default class Nova {
95
96
* Return an axios instance configured to make requests to Nova's API
96
97
* and handle certain response codes.
97
98
*
98
- * @param {any } options
99
+ * @param {AxiosRequestConfig|null } [ options=null]
99
100
* @returns {AxiosInstance }
100
101
*/
101
- request ( options : any ) : AxiosInstance ;
102
+ request ( options ?: AxiosRequestConfig | null ) : AxiosInstance ;
102
103
/**
103
104
* Get the URL from base Nova prefix.
104
105
*
@@ -260,6 +261,7 @@ export type VueApp = import("vue").App;
260
261
export type VueComponent = import ( "vue" ) . Component ;
261
262
export type DefineComponent = import ( "vue" ) . DefineComponent ;
262
263
export type AxiosInstance = import ( "axios" ) . AxiosInstance ;
264
+ export type AxiosRequestConfig = import ( "axios" ) . AxiosRequestConfig ;
263
265
export type AppConfig = {
264
266
[ x : string ] : any ;
265
267
} ;
You can’t perform that action at this time.
0 commit comments