@torthu/jacketui-bring 0.1.0 → 0.1.1
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,10 +1,9 @@
|
|
|
1
1
|
import { BringInitDecorator } from "../types/BringDecorator";
|
|
2
|
-
|
|
3
|
-
/** jsonBody(body: BringInit["body"]): BringInitDecorator
|
|
2
|
+
/** jsonBody(body: any): BringInitDecorator
|
|
4
3
|
*
|
|
5
4
|
* Sets the body of the request to a JSON string.
|
|
6
5
|
*
|
|
7
6
|
* @param body Any JSON serializable value
|
|
8
7
|
* @returns BringInitDecorator
|
|
9
8
|
*/
|
|
10
|
-
export declare const jsonBody: (body:
|
|
9
|
+
export declare const jsonBody: (body: any) => BringInitDecorator;
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BringInitDecorator } from "../types/BringDecorator";
|
|
2
|
-
import { BringInit } from "../types/BringInit";
|
|
3
2
|
|
|
4
|
-
/** jsonBody(body:
|
|
3
|
+
/** jsonBody(body: any): BringInitDecorator
|
|
5
4
|
*
|
|
6
5
|
* Sets the body of the request to a JSON string.
|
|
7
6
|
*
|
|
@@ -9,5 +8,5 @@ import { BringInit } from "../types/BringInit";
|
|
|
9
8
|
* @returns BringInitDecorator
|
|
10
9
|
*/
|
|
11
10
|
export const jsonBody =
|
|
12
|
-
(body:
|
|
11
|
+
(body: any): BringInitDecorator =>
|
|
13
12
|
(init) => ({ ...init, body: JSON.stringify(body) });
|