[Backport 7.x] Fixed types code generation (#1213)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2020-06-03 10:42:18 +02:00
committed by GitHub
parent a4093a7338
commit 8eacc288c7

View File

@ -123,6 +123,8 @@ export interface ${toPascalCase(name)}${body ? `<T = ${bodyGeneric}>` : ''} exte
case 'double':
case 'long':
return 'number'
case 'boolean|long':
return 'boolean | number'
default:
return type
}