mirror of
https://github.com/valitydev/partial-fetcher.git
synced 2024-11-06 00:55:17 +00:00
clean up
This commit is contained in:
parent
a8d9578848
commit
862b6a4128
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rbkmoney/partial-fetcher",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "An library for fetching data from endpoints that uses continuationToken.",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -1,9 +0,0 @@
|
||||
import { distinctUntilChanged, debounce } from 'rxjs/operators';
|
||||
import { timer, empty, Observable } from 'rxjs';
|
||||
|
||||
export const booleanDebounceTime = (timeoutMs: number = 500) => (s: Observable<boolean>): Observable<boolean> =>
|
||||
s.pipe(
|
||||
distinctUntilChanged(),
|
||||
debounce(v => (v ? timer(timeoutMs) : empty())),
|
||||
distinctUntilChanged()
|
||||
);
|
Loading…
Reference in New Issue
Block a user