mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-09-17 09:06:48 +07:00
15 lines
473 B
TypeScript
15 lines
473 B
TypeScript
|
|
import { Transform, type TransformOptions } from 'node:stream';
|
||
|
|
/**
|
||
|
|
* Escapes dots in the beginning of lines. Ends the stream with <CR><LF>.<CR><LF>
|
||
|
|
* Also makes sure that only <CR><LF> sequences are used for linebreaks
|
||
|
|
*
|
||
|
|
* @param options Stream options
|
||
|
|
*/
|
||
|
|
export default class DataStream extends Transform {
|
||
|
|
options: TransformOptions;
|
||
|
|
inByteCount: number;
|
||
|
|
outByteCount: number;
|
||
|
|
lastByte: number | false;
|
||
|
|
constructor(options?: TransformOptions);
|
||
|
|
}
|