-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
Description
Hi there!
I'm having an issue, where all the generated models which reference other models are typed as
someProp: types.union(types.undefined, types.late((): any => SomeNameModel))
The issue I'm having is with the "any" literal typing, which instead of typing "someProp" as being of type "SomeNameModel", it gets typed as "any".
While digging into the code, I understand that when generated with the command gets run with "--format ts" attribute, ": any" type is hardcoded. Link to file.
I'm not sure if this was intended to solve this issue, but it does not seems to be causing that problem.
Could that "any" typing be removed?
Reactions are currently unavailable