Function unreachable

  • Throws when called and statically makes sure that all variants of a type were consumed.

    Parameters

    • _never: never
    • message: string = 'unhandled case'

    Returns never