Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
Looks like only simple parameterized types are generated as expected. Nested ones are lost.
Minimal reproducible example
I wrote this code:
public record LocalStorageConfiguration(String name, String path, int port) {}
public record ConnectedStorageConfiguration(String name, String path, EncryptionType encryptionType) {}
public Pair<List<LocalStorageConfiguration>, List<ConnectedStorageConfiguration>> listStorages() {
...
}
where Pair is this class (a simple generic pair of two objects).
Expected behavior
The two records are translated to TS and the full return type information is preserved on listStorages.
Actual behavior
The records are not generated in TS and I get this method in the endpoint:
Description of the bug
Looks like only simple parameterized types are generated as expected. Nested ones are lost.
Minimal reproducible example
I wrote this code:
where
Pair
is this class (a simple generic pair of two objects).Expected behavior
The two records are translated to TS and the full return type information is preserved on
listStorages
.Actual behavior
The records are not generated in TS and I get this method in the endpoint:
Versions: