@ahoo-wang/fetcher-wow 3.0.2 → 3.0.5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestHeaders, UrlParams } from '@ahoo-wang/fetcher';
|
|
1
|
+
import { RemoveReadonlyFields, RequestHeaders, UrlParams } from '@ahoo-wang/fetcher';
|
|
2
2
|
import { UrlPathParams } from '../types';
|
|
3
3
|
import { ParameterRequest } from '@ahoo-wang/fetcher-decorator';
|
|
4
4
|
/**
|
|
@@ -28,12 +28,12 @@ export interface CommandUrlParams extends Omit<UrlParams, 'path' | 'query'> {
|
|
|
28
28
|
* Extends RequestHeaders to provide type-safe access to command-related HTTP headers.
|
|
29
29
|
* This interface includes only the essential command headers commonly used in HTTP requests.
|
|
30
30
|
*/
|
|
31
|
-
export interface CommandRequest<C extends object = object> extends ParameterRequest<C
|
|
31
|
+
export interface CommandRequest<C extends object = object> extends ParameterRequest<RemoveReadonlyFields<C>> {
|
|
32
32
|
urlParams?: CommandUrlParams;
|
|
33
33
|
headers?: CommandRequestHeaders;
|
|
34
34
|
/**
|
|
35
35
|
* The body of the command request.
|
|
36
36
|
*/
|
|
37
|
-
body?: C
|
|
37
|
+
body?: RemoveReadonlyFields<C>;
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=commandRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandRequest.d.ts","sourceRoot":"","sources":["../../src/command/commandRequest.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"commandRequest.d.ts","sourceRoot":"","sources":["../../src/command/commandRequest.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc;CA4G5D;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACzE,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CACvD,SAAQ,gBAAgB,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;CAChC"}
|