With Java we used @NotNull annotations and IDE support to give warnings. Luckily we are converting our legacy code base to Kotlin.
With conditional type conditions Typescript will have better support than earlier:
type NonNullable<T> = Diff<T, null | undefined>; // Remove null and undefined from T
With Java we used @NotNull annotations and IDE support to give warnings. Luckily we are converting our legacy code base to Kotlin.
With conditional type conditions Typescript will have better support than earlier:
Source and the examples in: https://github.com/Microsoft/TypeScript/pull/21316