Skip to content

Commit 5af5c27

Browse files
committed
Merge branch 'fix/use-array-isarray' of github.com:JoacoEsteban/typescriptify-golang-structs into JoacoEsteban-fix/use-array-isarray
2 parents 9acffe9 + d1fac29 commit 5af5c27

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
@@ -21,7 +21,7 @@ const (
2121
if (!a) {
2222
return a;
2323
}
24-
if (a.slice) {
24+
if (Array.isArray(a)) {
2525
return (a as any[]).map(elem => this.convertValues(elem, classs));
2626
} else if ("object" === typeof a) {
2727
if (asMap) {

0 commit comments

Comments
 (0)