Closed
Description
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
.