Skip to content

Commit 0a47bf4

Browse files
committed
ts array annotation fix
Signed-off-by: Clemens Vasters <clemens@vasters.com>
1 parent 5f9e854 commit 0a47bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avrotize/avrotots.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def generate_field(self, field: Dict, parent_namespace: str, import_types: Set[s
234234
return {
235235
'name': field_name,
236236
'type': field_type,
237-
'is_primitive': self.is_typescript_primitive(field_type),
237+
'is_primitive': self.is_typescript_primitive(field_type.replace('[]', '')),
238238
'is_array': field_type.endswith('[]'),
239239
'is_enum': len(import_types_this) > 0 and self.is_enum_type(import_types_this.pop(),'')
240240
}

0 commit comments

Comments
 (0)