@alextheman/utility - v5.34.0
    Preparing search index...

    Function assertNotUndefined

    • Asserts that a given input is not undefined, and throws a DataError if it does.

      If no error is thrown from this, the input type gets narrowed down to not include undefined.

      Type Parameters

      • InputType

        The type of the input.

      Parameters

      • input: InputType

        The input to assert against.

      Returns asserts input is NonUndefined<InputType>

      If the input is undefined.