Skip to content

Entity interface name is empty for Union in Array  #21

@Gowee

Description

@Gowee

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions