- asNonNull<T>(
value: null extends T
? T
: undefined extends T ? T : Brand<"type is not nullable", "TypeError">,
): Exclude<T, null | undefined> Parameters
- value: null extends T
? T
: undefined extends T ? T : Brand<"type is not nullable", "TypeError">
Returns Exclude<T, null | undefined>