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

    Function assertNotNullable

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

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

      Type Parameters

      • InputType

        The type of the input.

      Parameters

      • input: InputType

        The input to assert against.

      Returns asserts input is NonNullable<InputType>

      If the input is undefined or null.