From acb1fcd70c53e235cc78328d443028f38992ed8c Mon Sep 17 00:00:00 2001 From: Stepan Kuzmin Date: Wed, 21 Aug 2024 17:08:58 +0300 Subject: [PATCH] Update compile.js Co-authored-by: Volodymyr Agafonkin --- compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.js b/compile.js index 8360486..719ba76 100644 --- a/compile.js +++ b/compile.js @@ -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) {