Closed ciricc closed 2 years ago
Hello @ciricc, TY for the issue. This is a bug. I'll look into it.
Fixed.
Try new versions tst-reflect@0.7.5
& tst-reflect-transformer@0.9.10
Hello, @Hookyns . Thank you for reply. I've tried new version but it seems like now last .type
property is just undefined, not a function.
TypeError: Cannot read properties of undefined (reading 'isObjectLike')
54 | .type.getTypeArguments()[0]
55 | .getProperties()[0]
> 56 | .type.isObjectLike()) // isObjectLike() is not a function
Okay, I'll check it again; this must be something with the Array, cuz I wrote test with:
type Node = {
left: Node;
right: Node;
};
it didn't work too and now it works. I should try your example first, sorry.
@ciricc Fixed in tst-reflect@0.7.6
@Hookyns Thank you very much! Now is working ok
I've tried this sample with recursive type. And i found that type is a function, not a
Type
. I have last version oftst-reflect
andts-node
.