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.
public abstract class SingleValueObject<T> {
private final T value;
public SingleValueObject(T value) {
this.value = value;
}
public T value() {
return value;
}
}
And the following concrete implementation:
public final class TimeZone extends SingleValueObject<String> {
@JsonCreator
public TimeZone(String value) {
super(value);
}
@Override
@JsonValue
public String value() {
return value;
}
}
When used like this:
public record LocationReference(
@Nonnull TimeZone timeZone
)
Describe the bug
Given the following base class for value objects:
And the following concrete implementation:
When used like this:
The generated TypeScript looks like this:
Expected-behavior
The generated TypeScript should look like this (
string
instead ofunknown
):Reproduction
Create the classes described above in a project and generate the corresponding TypeScript types.
System Info
MacOS 14.5, Chrome 125.0.6422.114, Vaadin 24.5.0.alpha1.