Closed lastmjs closed 10 months ago
Hi,
You have to use the generic argument of the getType; You can pass only primitive types or classes as runtime argument.
This will return correct type.
getType<typeof testRoomba>()
See the demo.
PS: It is possible to use getType(testRoomba)
in Alpha version (discontinued) - alpha demo here - and it will be possible with the upcoming TypeGen.
Okay, thank you.
Is this library supposed to be able to return the type information of functions at runtime?
I want something like this to work:
It logs:
I don't see the type information I need for the params, return type, or type parameters.