Skip to content

types.late always typed as any #400

Open
@sebikap-gm2

Description

@sebikap-gm2

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions