We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86675a8 + 0dea540 commit cd5021fCopy full SHA for cd5021f
s2ts.go
@@ -106,7 +106,7 @@ func (s *StructToTS) addTypeFields(out *Struct, t reflect.Type) {
106
}
107
108
case k == reflect.Slice, k == reflect.Array:
109
- tf.CanBeNull = true
+ tf.CanBeNull = k == reflect.Slice
110
tf.TsType, tf.ValType = "array", stripType(sft.Elem())
111
112
if isStruct(sft.Elem()) {
0 commit comments