Function invariant

  • Throws an error if condition is falsey

    Returns

    Asserts the condition is not falsey

    Type Parameters

    • Condition

    Parameters

    • condition: Condition

      Any value

    • Optional options: Partial<InvariantOptions<Condition>>

      A partial instance of InvairantOptions

    Returns asserts condition

Generated using TypeDoc