Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
edb58ade28 | |||
753a481765 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartstream",
|
"name": "@push.rocks/smartstream",
|
||||||
"version": "3.0.32",
|
"version": "3.0.33",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "simplifies access to node streams",
|
"description": "simplifies access to node streams",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartstream',
|
name: '@push.rocks/smartstream',
|
||||||
version: '3.0.32',
|
version: '3.0.33',
|
||||||
description: 'simplifies access to node streams'
|
description: 'simplifies access to node streams'
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,11 @@ export interface ISmartDuplexOptions<TInput, TOutput> extends DuplexOptions {
|
|||||||
* it can push or return chunks (but does not have to) to be written to the readable side of the stream
|
* it can push or return chunks (but does not have to) to be written to the readable side of the stream
|
||||||
*/
|
*/
|
||||||
writeFunction?: IStreamWriteFunction<TInput, TOutput>;
|
writeFunction?: IStreamWriteFunction<TInput, TOutput>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* a final function that is being sent to the end of the stream
|
* a final function that is run at the end of the stream
|
||||||
*/
|
*/
|
||||||
finalFunction?: IStreamFinalFunction<TOutput>;
|
finalFunction?: IStreamFinalFunction<TOutput>;
|
||||||
// Add other custom options if necessary
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
|
export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
|
||||||
|
Reference in New Issue
Block a user