add nullable support to typescript-axios (#1743)

This commit is contained in:
tanmen 2018-12-24 01:59:13 +09:00 committed by William Cheng
parent 92badd8d49
commit aed2c882da
5 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ export interface {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{
* @type {{=<% %>=}}{<%&datatype%>}<%={{ }}=%>
* @memberof {{classname}}
*/
{{name}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}};
{{name}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}};
{{/vars}}
}{{#hasEnums}}

View File

@ -1 +1 @@
3.3.2-SNAPSHOT
4.0.0-SNAPSHOT