Skip to content

Generic type parameters not resolved properly #380

Closed
@Mobe91

Description

@Mobe91

Given to following class hierarchy:

public interface IdView<T extends Serializable> {
    T getId();
}

public interface Entity1IdView extends IdView<UUID> {
}

public abstract class Entity1View implements Entity1IdView {
  private String name;

  public String getName() { return name; }
}

Yields the following typescript definitions:

export interface Serializable {
}
export interface Entity1IdView extends IdView<string> {
}
export class Entity1View implements Entity1IdView {
    id: T;
    name: string;
}

Apparently, the type parameter T is not resolved correctly for the declaration of the id field in Entity1View.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions