Skip to content

Commit acb1fcd

Browse files
Update compile.js
Co-authored-by: Volodymyr Agafonkin <[email protected]>
1 parent 6f98f2b commit acb1fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ function getTsType(field) {
471471
else if (field.type === 'bytes') type = 'Uint8Array';
472472
else if (field.type === 'bool') type = 'boolean';
473473

474-
return field.repeated ? `Array<${type}>` : type;
474+
return field.repeated ? `${type}[]` : type;
475475
}
476476

477477
function getMapTsType(fields) {

0 commit comments

Comments
 (0)