Skip to content

Instantly share code, notes, and snippets.

@armanozak
Created May 3, 2021 08:45
Show Gist options
  • Select an option

  • Save armanozak/bf46895538fcd093bd0786094ef88489 to your computer and use it in GitHub Desktop.

Select an option

Save armanozak/bf46895538fcd093bd0786094ef88489 to your computer and use it in GitHub Desktop.
[What's New in RxJS 7] Better types in functions that take n parameters #blog #rxjs
import { of } from "rxjs";
// Observable<string, number> (in RxJS 6 → No overload matches this call)
of(0, "A", 1, "B", 2, "C", 3, "D", 4, "E", 5, "F", 6, "G", 7, "H", 8, "I", 9, "...");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment