hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Flux endpoint types become nullable in Kotlin

Open marcushellberg opened this issue 2 years ago • 0 comments

Description of the bug

Kotlin types are not nullable by default. When I expose a Flux endpoint, I do not expect the generated type to be nullable.

Screen Shot 2022-08-31 at 15 48 01

Even adding an explicit @Nonnull does not remedy the issue Screen Shot 2022-08-31 at 15 30 29

Minimal reproducible example

See above.

Expected behavior

I expect the TS type to match the Kotlin type, not have an additional | undefined

Actual behavior

See above

Versions:

- Vaadin / Hilla version: 1.2.0.rc1 with multi-module engine
- Node version: 18.8.0
- Java version: 17.0.1
- OS version: 12.4

marcushellberg avatar Sep 01 '22 14:09 marcushellberg