laravel-request 1.2.18 → 1.2.19
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/@types/Api.d.ts +4 -4
- package/package.json +1 -1
package/@types/Api.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ declare module 'laravel-request' {
|
|
|
5
5
|
static tokenResolver: () => Promise<string | null>;
|
|
6
6
|
static domainResolver: () => string;
|
|
7
7
|
|
|
8
|
-
static getArg(controller: string, action: string, arg: string, data?: Record<string, any>): ApiRequest;
|
|
8
|
+
static getArg(controller: string, action: string, arg: string|number, data?: Record<string, any>): ApiRequest;
|
|
9
9
|
|
|
10
|
-
static postArg(controller: string, action: string, arg: string, data?: Record<string, any>): ApiRequest;
|
|
10
|
+
static postArg(controller: string, action: string, arg: string|number, data?: Record<string, any>): ApiRequest;
|
|
11
11
|
|
|
12
|
-
static putArg(controller: string, action: string, arg: string, data?: Record<string, any>): ApiRequest;
|
|
12
|
+
static putArg(controller: string, action: string, arg: string|number, data?: Record<string, any>): ApiRequest;
|
|
13
13
|
|
|
14
14
|
static getUrl(url: string, data?: Record<string, any>): ApiRequest;
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ declare module 'laravel-request' {
|
|
|
23
23
|
|
|
24
24
|
static put(controller: string, action: string, data?: Record<string, any>): ApiRequest;
|
|
25
25
|
|
|
26
|
-
static delete(controller: string, action: string, id: string, data?: Record<string, any>): ApiRequest;
|
|
26
|
+
static delete(controller: string, action: string, id: string|number, data?: Record<string, any>): ApiRequest;
|
|
27
27
|
|
|
28
28
|
static encodeQueryString(params: Record<string, any>): string;
|
|
29
29
|
|