Skip to content

Commit

Permalink
fix: expose mapToLatestFrom over the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
ersimont committed Jul 16, 2019
1 parent 656e943 commit 21ae38c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/s-rxjs-utils/src/lib/operators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export { filterBehavior } from "./filter-behavior";
export { logValues } from "./log-values";
export { mapAndCacheArrayElements } from "./map-and-cache-array-elements";
export { mapAndCacheObjectElements } from "./map-and-cache-object-elements";
export { mapToLatestFrom } from "./map-to-latest-from";
export { skipAfter } from "./skip-after";
export { withHistory } from "./with-history";
4 changes: 3 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from "@angular/core";
import { noop, identity } from "micro-dash";
import { Subject } from "rxjs";
import { of, Subject } from "rxjs";
import {
cache,
createOperatorFunction,
Expand All @@ -10,6 +10,7 @@ import {
logValues,
mapAndCacheArrayElements,
mapAndCacheObjectElements,
mapToLatestFrom,
skipAfter,
SubscriptionManager,
withHistory,
Expand All @@ -32,6 +33,7 @@ export class AppComponent {
delayOnMicrotaskQueue(),
filterBehavior(() => true),
logValues(),
mapToLatestFrom(of(1)),
skipAfter(new Subject()),

// switch type to number[]
Expand Down

0 comments on commit 21ae38c

Please sign in to comment.