Skip to content

Commit

Permalink
Update compile.js
Browse files Browse the repository at this point in the history
Co-authored-by: Volodymyr Agafonkin <[email protected]>
  • Loading branch information
stepankuzmin and mourner authored Aug 21, 2024
1 parent 6f98f2b commit acb1fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ function getTsType(field) {
else if (field.type === 'bytes') type = 'Uint8Array';
else if (field.type === 'bool') type = 'boolean';

return field.repeated ? `Array<${type}>` : type;
return field.repeated ? `${type}[]` : type;
}

function getMapTsType(fields) {
Expand Down

0 comments on commit acb1fcd

Please sign in to comment.