UNPKG
stromjs
Version:
latest (0.5.5)
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
Dependency-free streams utils for Node.js
github.com/lewisdiamond/stromjs
lewisdiamond/stromjs
stromjs
/
dist
/
functions
/
filter.d.ts
4 lines
(3 loc)
•
266 B
TypeScript
View Raw
1
2
3
4
/// <reference types="node" />
import
{
Transform
,
TransformOptions
}
from
"stream"
;
export
declare
function
filter<T>(
predicate
: (
(
chunk
: T,
encoding
:
string
) =>
boolean
) | (
(
chunk
: T,
encoding
:
string
) =>
Promise
<
boolean
>),
options
?:
TransformOptions
):
Transform
;