Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/never"

Index

Functions

Functions

assertNever

  • assertNever(value: never): void
  • Asserts that this function should never be called. The common usage is to call this as the "else" case in a series of if/else blocks or the default case in a switch statement when testing cases of an enum or union type. This is a compile-time way to ensure that your code properly tests for all possible cases of a given enum or union type

    export

    Parameters

    • value: never

    Returns void

Generated using TypeDoc