laravel-request 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/types.d.ts +5 -0
package/package.json
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// Define an interface for the ApiRequest class
|
|
2
2
|
|
|
3
3
|
declare module 'laravel-request' {
|
|
4
|
+
import * as axios from "axios/index";
|
|
5
|
+
|
|
4
6
|
export class ApiRequest {
|
|
5
7
|
url: string;
|
|
8
|
+
source: any;
|
|
6
9
|
static notifyClass: any | null;
|
|
7
10
|
domain: string;
|
|
8
11
|
target: string;
|
|
@@ -47,6 +50,8 @@ declare module 'laravel-request' {
|
|
|
47
50
|
|
|
48
51
|
getUrl(): string;
|
|
49
52
|
|
|
53
|
+
getSource(): axios.CancelTokenSource|null;
|
|
54
|
+
|
|
50
55
|
call(
|
|
51
56
|
successCallback?: (r: any) => void,
|
|
52
57
|
errorCallback?: () => void,
|