vaadin / vaadin-connect

A Vaadin Labs experiment with a secure stateless communication framework
https://vaadin.com/labs/vaadin-connect
Apache License 2.0
18 stars 5 forks source link

Consider changing the approach to null / undefined in generated TS wrappers #404

Open vlukashov opened 5 years ago

vlukashov commented 5 years ago

Originally, all generated TS types did not allow null / undefined values. Later(see https://github.com/vaadin/vaadin-connect/issues/363), all null / undefined values were explicitly allowed in all generated types (the current state). That has raised a number of DX concerns. The task of this ticket is to re-consider the approach and see if some aspects of the DX can be improved without hurting the type safety.

DX concerns with the current approach to null / undefined values: