Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.8.2 introduces breaking changes #7536

Open
ilyakonrad opened this issue Mar 3, 2025 · 1 comment
Open

7.8.2 introduces breaking changes #7536

ilyakonrad opened this issue Mar 3, 2025 · 1 comment

Comments

@ilyakonrad
Copy link

ilyakonrad commented Mar 3, 2025

Describe the bug

Calling .next() with no arguments like this

new Observable((observer) => {
  observer.next()
}

shows error

Expected 1 arguments, but got 0.ts(2554)

Subscriber.d.ts(42, 10): An argument for 'value' was not provided.

Expected behavior

No breaking changes in patch version updates.

Version

7.8.2

Additional context

Duplicate of #7534.

@hakimio
Copy link

hakimio commented Mar 4, 2025

I guess now you have to explicitly specify the generic type:

new Observable<void>((observer) => {
  observer.next()
}

Either the default generic should be set to void (class Observable<T = void>) for the Observable or this breaking change should be postponed until v8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants