Skip to content

Commit 0399956

Browse files
authored
Merge pull request stardogventures#4 from charthop/andrewklatzke8990/ch23348/update-axios
[ch23348] Adds 'as const' to HTTP methods; for Axios upgrade
2 parents 3ae321f + dc64d13 commit 0399956

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/swagger-codegen/src/main/resources/typescript-axios

modules/swagger-codegen/src/main/resources/typescript-axios/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class {{classname}}Resource {
3838
{{/hasFormParams}}
3939
let reqConfig = {
4040
...axiosConfig,
41-
method: '{{httpMethod}}',
41+
method: '{{httpMethod}}' as const,
4242
url: reqPath{{#hasQueryParams}},
4343
params: query{{/hasQueryParams}}{{#bodyParam}},
4444
data: {{paramName}}{{/bodyParam}}{{#hasFormParams}},

0 commit comments

Comments
 (0)