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

    Function assertNotNull

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

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

      Type Parameters

      • InputType

        The type of the input.

      Parameters

      • input: InputType

        The input to assert against

      Returns asserts input is NonNull<InputType>

      If the input is null.