Skip to content

Commit 7d9b393

Browse files
committed
fix: problem with missing HttpResponse type with --to-js option
1 parent 97d945f commit 7d9b393

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"printWidth": 100,
2+
"printWidth": 120,
33
"tabWidth": 2,
44
"trailingComma": "all"
55
}

templates/modular/api.eta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const dataContracts = _.map(modelTypes, "name");
88

99
<% if (config.httpClientType === config.constants.HTTP_CLIENT.AXIOS) { %> import { AxiosRequestConfig, AxiosResponse } from "axios"; <% } %>
1010

11-
import { HttpClient, RequestParams, ContentType } from "./<%~ config.fileNames.httpClient %>";
11+
import { HttpClient, RequestParams, ContentType, HttpResponse } from "./<%~ config.fileNames.httpClient %>";
1212
<% if (dataContracts.length) { %>
1313
import { <%~ dataContracts.join(", ") %> } from "./<%~ config.fileNames.dataContracts %>"
1414
<% } %>

0 commit comments

Comments
 (0)