UNPKG
@johngw/stream
Version:
latest (4.4.1)
4.4.1
4.4.0
4.3.0
4.2.0
4.1.0
4.0.2
4.0.1
3.1.0
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.0
1.6.1
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
Reactive programming tools using the WHATWG Streams API.
github.com/jg-wright/stream
@johngw/stream
/
dist
/
transformers
/
sampleTime.d.ts
13 lines
•
292 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/
*
*
*
Streams the latest chunk
in
intervals of `ms`.
*
*
@
group Transformers
*
@
example
*
``` * --1--T40----2--T20--| * sampleTime(20) * -T20-1-T20-1-T20-2--| * ```
*
/
export declare
function
sampleTime
<
T
>
(
ms
:
number
)
:
TransformStream
<
T
,
T
>
;
/
/
# sourceMappingURL=sampleTime.d.ts.map