Skip to content

Commit fe086fe

Browse files
committed
Build fix
1 parent c8b534e commit fe086fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescriptify/typescriptify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func (t *TypeScriptify) getJSONFieldName(field reflect.StructField, isPtr bool)
541541
if !ignored && isPtr || hasOmitEmpty {
542542
jsonFieldName = fmt.Sprintf("%s?", jsonFieldName)
543543
}
544-
} else if field.IsExported() {
544+
} else if /*field.IsExported()*/ field.PkgPath == "" {
545545
jsonFieldName = field.Name
546546
}
547547
return jsonFieldName

0 commit comments

Comments
 (0)