Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@marcj/estdlib-rxjs

marcj37MIT0.1.19TypeScript support: included

engineering stdlib for typescript

readme

estdlib.ts RXJS

Build Status npm version

Installation

npm install @marcj/estdlib-rxjs

Usage example

import {Subscriptions} from "@marcj/estdlib-rxjs";

class MyComponent implements OnDestroy, OnInit {
    private subs = new Subscriptions;

    public onInit() {
        this.subs.add = this.observable.subscribe(() => {
            //do something
        });

        this.subs.add = this.anotherOne.subscribe(() => {
            //do something
        });
    }

    public OnDestroy() {
        this.subs.unsubscribe();
    }
}