@technicity/openapi-sdk-generator 5.4.6 → 5.4.8
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/generate-remix.js +3 -3
- package/package.json +1 -1
- package/src/generate-remix.ts +3 -3
package/dist/generate-remix.js
CHANGED
|
@@ -132,7 +132,7 @@ async function generate(input) {
|
|
|
132
132
|
status: result?.status,
|
|
133
133
|
body:
|
|
134
134
|
result?.body == null
|
|
135
|
-
? result?.body
|
|
135
|
+
? (result?.body as any)
|
|
136
136
|
: JSON.stringify(result.body),
|
|
137
137
|
};
|
|
138
138
|
};
|
|
@@ -617,13 +617,13 @@ function getHttpClientCode() {
|
|
|
617
617
|
url: URL;
|
|
618
618
|
method: string;
|
|
619
619
|
headers: Headers;
|
|
620
|
-
reqBody: BodyInit | undefined;
|
|
620
|
+
reqBody: BodyInit | null | undefined;
|
|
621
621
|
}) => Promise<TNullFetchRes> | TNullFetchRes;
|
|
622
622
|
};
|
|
623
623
|
|
|
624
624
|
type TNullFetchRes = {
|
|
625
625
|
body?: BodyInit;
|
|
626
|
-
status?: number
|
|
626
|
+
status?: number;
|
|
627
627
|
headers?: HeadersInit;
|
|
628
628
|
};
|
|
629
629
|
|
package/package.json
CHANGED
package/src/generate-remix.ts
CHANGED
|
@@ -135,7 +135,7 @@ export async function generate(input: {
|
|
|
135
135
|
status: result?.status,
|
|
136
136
|
body:
|
|
137
137
|
result?.body == null
|
|
138
|
-
? result?.body
|
|
138
|
+
? (result?.body as any)
|
|
139
139
|
: JSON.stringify(result.body),
|
|
140
140
|
};
|
|
141
141
|
};
|
|
@@ -733,13 +733,13 @@ function getHttpClientCode() {
|
|
|
733
733
|
url: URL;
|
|
734
734
|
method: string;
|
|
735
735
|
headers: Headers;
|
|
736
|
-
reqBody: BodyInit | undefined;
|
|
736
|
+
reqBody: BodyInit | null | undefined;
|
|
737
737
|
}) => Promise<TNullFetchRes> | TNullFetchRes;
|
|
738
738
|
};
|
|
739
739
|
|
|
740
740
|
type TNullFetchRes = {
|
|
741
741
|
body?: BodyInit;
|
|
742
|
-
status?: number
|
|
742
|
+
status?: number;
|
|
743
743
|
headers?: HeadersInit;
|
|
744
744
|
};
|
|
745
745
|
|