This package has been deprecated

Author message:

This project is deprecated. Please use @w11k/rx-ninja instead.

@w11k/rx-utils
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

Build Status npm version

rx-utils

Utilities for RxJS

Patrons

❤️ W11K - The Web Engineers

❤️ theCodeCampus - Trainings for Angular and TypeScript

API Documentation

🗄 TypeDoc online API documentation

Operator Description
debounceIf Debounce values on the stream if the predicate returns true

TSLint rules

Installation

Adjust your tslint.json

{
  "rulesDirectory": [
    "node_modules/@w11k/rx-utils/dist/tslint_rules"
  ],
  "rules": {
    "w11k-rxjs-subscribe-takeuntil": true,
    "w11k-rxjs-subscribe-in-subscribe": true
  }
}

Run tslint with type info

tslint -p tsconfig.json -t verbose

Rule descriptions

w11k-rxjs-subscribe-takeuntil

This rule triggers if Observable#subscribe() is called and then enforces that

  • .pipe() is called directly before .subscribe()
  • and that takeUntil() is called as the last pipe operator

w11k-rxjs-subscribe-in-subscribe

This rule triggers if Observable#subscribe() is called inside of another Observable#subscribe() call, e.g.

import {of} from "rxjs";

of(1).subscribe(() => {
    of(2).subscribe(); // <-- error
});

Readme

Keywords

none

Package Sidebar

Install

npm i @w11k/rx-utils

Weekly Downloads

16

Version

1.6.0

License

Apache-2.0

Unpacked Size

84.7 kB

Total Files

60

Last publish

Collaborators

  • pburgmer
  • m_sallat
  • fvonberg
  • sengmann
  • kaihenzler
  • romanroe