Skip to content

Commit

Permalink
fix(template): fix the type of the request body in the ts template
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandryackovlev committed Dec 24, 2019
1 parent 1170d7a commit 044a94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/ts/index.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ajv = new Ajv({ unknownFormats: ['int32', 'int64']});
params?: {{capitalize name}}Params;
{{/if}}
{{#if data}}
data?: {{capitalize name}}RequestBody{{capitalize mimeTypeSuffix}};
data?: FormData | {{capitalize name}}RequestBody{{capitalize mimeTypeSuffix}};
{{/if}}
{{#if header}}
headers?: {{capitalize name}}Headers,
Expand Down

0 comments on commit 044a94b

Please sign in to comment.