@zwa73/utils 1.0.197 → 1.0.198
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/dist/UtilCom.d.ts +6 -0
- package/dist/UtilCom.js +4 -0
- package/package.json +1 -1
- package/src/UtilCom.ts +4 -0
package/dist/UtilCom.d.ts
CHANGED
|
@@ -96,6 +96,12 @@ export declare class UtilCom<D extends Partial<ComRequestOption>, S extends Send
|
|
|
96
96
|
}, S, A>;
|
|
97
97
|
/**补充参数 */
|
|
98
98
|
option<OPT extends Partial<ComRequestOption>>(opt: OPT): UtilCom<D & OPT, S, A>;
|
|
99
|
+
/**收发皆为json的post预设 */
|
|
100
|
+
postJson(): UtilCom<D & {
|
|
101
|
+
readonly method: "POST";
|
|
102
|
+
}, SendProc<[JsonType<D & {
|
|
103
|
+
readonly method: "POST";
|
|
104
|
+
}>]>, AcceptProc<string, JToken>>;
|
|
99
105
|
/**收发皆为json的预设 */
|
|
100
106
|
json(): UtilCom<D, SendProc<[JsonType<D>]>, AcceptProc<string, JToken>>;
|
|
101
107
|
/**接收数据类型*/
|
package/dist/UtilCom.js
CHANGED
package/package.json
CHANGED
package/src/UtilCom.ts
CHANGED