• Use this function to raise an error when running a branch of code that is not reachable according to typescript. Typically you may call this function in the default statement of a switch() that has case statements for all possible values.

    Parameters

    • x: never

      A value of type never.

    • Optional message: string

      The error message if this function is called.

    Returns never

Generated using TypeDoc