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

fix: make observerOrNext in Observable#subscribe nullable #7502

Open
wants to merge 1 commit into
base: 7.x
Choose a base branch
from

Conversation

imjordanxd
Copy link

@imjordanxd imjordanxd commented Sep 19, 2024

Description:
This PR makes the observerOrNext param in Observable#subscribe. No logic change is required, as subscribe is already overloaded with null, so the logic to check for this is already in place. This is also aligned with what's in the V8 branch.

Related issue (if exists):

@imjordanxd imjordanxd marked this pull request as ready for review September 19, 2024 07:21
@@ -64,7 +64,7 @@ export class Observable<T> implements Subscribable<T> {
return observable;
}

subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;
subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null): Subscription;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, all the build steps fail locally for me 🤷

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

Successfully merging this pull request may close these issues.

1 participant