Skip to content

Commit

Permalink
fix(Types): Replace NodeJS.WritableStream with Writable from stream t…
Browse files Browse the repository at this point in the history
…o remove mocha types (LLC-2372) (#893)
  • Loading branch information
ToranSharma authored Mar 22, 2023
1 parent 393bad4 commit 5b4a5ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ sourceMapSupport.install();
import assert from 'assert';
import { Readable as ReadableStream } from 'stream';
import { map } from 'lodash';
import 'mocha'; // eslint-disable-line import/no-unassigned-import
import streamToString from 'stream-to-string';
import Part from '../../models/Part';
import getParts from '../utils/getParts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Writable } from 'stream';
import { reduce } from 'bluebird';

import AttachmentModel from '../../../models/AttachmentModel';

export const boundary = 'zzzlearninglockerzzz';

export default async (
jsonResponse: any,
attachments: AttachmentModel[],
stream: NodeJS.WritableStream,
) => {
export default async (jsonResponse: any, attachments: AttachmentModel[], stream: Writable) => {
const crlf = '\r\n';
const fullBoundary = `${crlf}--${boundary}${crlf}`;
const stringResponse = JSON.stringify(jsonResponse);
Expand Down

0 comments on commit 5b4a5ca

Please sign in to comment.