Fix prettier

This commit is contained in:
Leonid Logvinov 2018-01-04 16:31:46 +01:00
parent e2ef0c5b94
commit 326a6b729f
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -10,7 +10,9 @@ export const utils = {
if (solType.match(trailingArrayRegex)) {
const arrayItemSolType = solType.replace(trailingArrayRegex, '');
const arrayItemTsType = utils.solTypeToTsType(paramKind, arrayItemSolType);
const arrayTsType = utils.isUnionType(arrayItemTsType) ? `Array<${arrayItemTsType}>` : `${arrayItemTsType}[]`;
const arrayTsType = utils.isUnionType(arrayItemTsType)
? `Array<${arrayItemTsType}>`
: `${arrayItemTsType}[]`;
return arrayTsType;
} else {
const solTypeRegexToTsType = [