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.
1 parent 86675a8 commit 0dea540Copy full SHA for 0dea540
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