Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity interface name is empty for Union in Array #21

Open
Gowee opened this issue Nov 29, 2020 · 0 comments
Open

Entity interface name is empty for Union in Array #21

Gowee opened this issue Nov 29, 2020 · 0 comments

Comments

@Gowee
Copy link

Gowee commented Nov 29, 2020

Not sure how to properly name it. Here is a reproducible example:

Input:

{
    "coord": [
        {
            "lon": 14.42,
            "lat": 50.09
        },
        true
    ]
}

Expected:

export interface Weather {
  coord?: (CoordEntity | boolean)[] | null;
}
export interface CoordEntity {
  lon: number;
  lat: number;
}

Actual output:

export interface Weather {
  coord?: ( | boolean)[] | null;
}
export interface  {
  lon: number;
  lat: number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant