VAADIN 15 issue exporting types to TypeScript

sorry i cannot change the title, is exporting EndPoint

on my endpoint i was trying to do a generic EntityData class:

public static class EntityData<T> {
    private List<T> entities;
    private int totalSize;

    public EntityData(List<T> entities, int totalSize) {
        this.entities = new ArrayList<T>(entities);
        this.totalSize = totalSize;
    }

    public List<T> getEntities() {
        return entities;
    }

    public int getTotalSize() {
        return totalSize;
    }
}


but when entityStore is exported to TypeScript the type is Any and not the Entity Type explicited.