Merge pull request #295 from dharmaprotocol/fix-array-typing-generation
Fix array typing generation when permitting multiple types
This commit is contained in:
@@ -10,7 +10,7 @@ export const utils = {
|
||||
if (solType.match(trailingArrayRegex)) {
|
||||
const arrayItemSolType = solType.replace(trailingArrayRegex, '');
|
||||
const arrayItemTsType = utils.solTypeToTsType(paramKind, arrayItemSolType);
|
||||
const arrayTsType = `${arrayItemTsType}[]`;
|
||||
const arrayTsType = `(${arrayItemTsType})[]`;
|
||||
return arrayTsType;
|
||||
} else {
|
||||
const solTypeRegexToTsType = [
|
||||
|
||||
Reference in New Issue
Block a user