Commit 41c22931 authored by tobinski's avatar tobinski
Browse files

update signature

parent 0abfa177
......@@ -4,7 +4,7 @@ import { Transform, TransformOptions } from 'stream';
* Options interface
*/
export interface IStreamFilterOptions extends TransformOptions {
filter: (chunk: any, encode: string) => [null | string, any];
filter: (chunk: any, encode: string) => [null | string, any] | [null];
}
/**
* Filter a stream of data with a simple function
......
......@@ -4,7 +4,7 @@ import {Transform, TransformOptions} from 'stream';
* Options interface
*/
export interface IStreamFilterOptions extends TransformOptions {
filter: (chunk: any, encode: string) => [null | string, any];
filter: (chunk: any, encode: string) => [null | string, any]|[null];
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment