Arize Phoenix TS
    Preparing search index...
    • A type check function to ensure that a switch or set of conditionals is exhaustive. Typescript will throw an error if the switch or conditionals are not exhaustive.

      Parameters

      • value: never

      Returns never

      type MyType = "a" | "b";
      function myFunction(value: MyType) {
      switch (value) {
      case "a":
      return "A";
      case "b":
      return "B";
      default:
      assertUnreachable(value);
      }
      }