Skip to content

Instantly share code, notes, and snippets.

@GarryBrown
Created June 18, 2020 10:48
Show Gist options
  • Save GarryBrown/9af6367645dd1e05460d09bbc424a9b2 to your computer and use it in GitHub Desktop.
Save GarryBrown/9af6367645dd1e05460d09bbc424a9b2 to your computer and use it in GitHub Desktop.
class Observable<T> implements Subscribable<T> {...}
export interface Subscribable<T> {
subscribe(observer?: PartialObserver<T>): Unsubscribable;
}
type PartialObserver<T> = NextObserver<T> | ErrorObserver<T> | CompletionObserver<T>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment