Skip to content

Instantly share code, notes, and snippets.

@GarryBrown
Created June 17, 2020 11:03
Show Gist options
  • Save GarryBrown/4a4ac2cf67f4cd0f7aa8c939b763f79d to your computer and use it in GitHub Desktop.
Save GarryBrown/4a4ac2cf67f4cd0f7aa8c939b763f79d to your computer and use it in GitHub Desktop.
class Subscriber<T> extends Subscription implements Observer<T> {...}
interface Observer<T> {
closed?: boolean;
next: (value: T) => void;
error: (err: any) => void;
complete: () => void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment