Skip to content

Recognize embedded types where type Eg = EgEntity | (EgEntity) []; #16

Description

@Guy--L

Some upstream converters from XML to Json, drop the array when it holds only one object.

I notice that
[{ "Eg": 0 }, [{"Eg": 1}] ]
produces the correct output.
export interface EgEntity { Eg: number; } export type Eg = EgEntity | (EgEntity)[] | null;
However, if Eg is inside a number of nested types, it is not recognized and children interfaces become Interface1 and Interface2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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