• An implementation of the shouldRetryOnError function that retries on network and internal errors.

    Parameters

    • error: Error
    • attemptNumber: number

    Returns Promise<boolean> | boolean