Skip to content

Commit 5b4a5ca

Browse files
authored
fix(Types): Replace NodeJS.WritableStream with Writable from stream to remove mocha types (LLC-2372) (#893)
1 parent 393bad4 commit 5b4a5ca

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/apps/statements/expressPresenter/tests/getParts.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sourceMapSupport.install();
55
import assert from 'assert';
66
import { Readable as ReadableStream } from 'stream';
77
import { map } from 'lodash';
8-
import 'mocha'; // eslint-disable-line import/no-unassigned-import
98
import streamToString from 'stream-to-string';
109
import Part from '../../models/Part';
1110
import getParts from '../utils/getParts';

src/apps/statements/expressPresenter/utils/getStatements/streamStatementsWithAttachments.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
import { Writable } from 'stream';
12
import { reduce } from 'bluebird';
3+
24
import AttachmentModel from '../../../models/AttachmentModel';
35

46
export const boundary = 'zzzlearninglockerzzz';
57

6-
export default async (
7-
jsonResponse: any,
8-
attachments: AttachmentModel[],
9-
stream: NodeJS.WritableStream,
10-
) => {
8+
export default async (jsonResponse: any, attachments: AttachmentModel[], stream: Writable) => {
119
const crlf = '\r\n';
1210
const fullBoundary = `${crlf}--${boundary}${crlf}`;
1311
const stringResponse = JSON.stringify(jsonResponse);

0 commit comments

Comments
 (0)