• Type Parameters

    • T

    Parameters

    • value: null extends T
          ? T
          : undefined extends T ? T : Brand<"type is not nullable", "TypeError">

    Returns Exclude<T, null | undefined>