Skip to content

Commit

Permalink
#23 Support typescript strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Manweill committed May 23, 2019
1 parent 0b06e35 commit bcc5ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## 0.5.4
## 0.5.5

Support typescript strict mode [issue 23](https://github.com/Manweill/swagger-axios-codegen/issues/23)

Expand Down
2 changes: 1 addition & 1 deletion src/requestCodegen/getRequestParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getRequestParameters(params: IParameter[]) {
// 如果参数是从formData 提交
if (p.in === 'formData') {
requestFormData += `if(params['${paramName}']){
data.append('${paramName}',params['${paramName}'])
data.append('${paramName}',<any>params['${paramName}'])
}\n
`
} else if (p.in === 'path') {
Expand Down

0 comments on commit bcc5ecd

Please sign in to comment.