diff --git a/src/getFileContents.ts b/src/getFileContents.ts index 7270aa8..d8bfc1d 100644 --- a/src/getFileContents.ts +++ b/src/getFileContents.ts @@ -18,7 +18,7 @@ export const getFileContents: () => Promise = () => new Promise((resolve const chunkList: Buffer[] = []; let totalLength = 0; - response.on('data', (chunk) => { + response.on('data', (chunk: Buffer) => { console.log(`BODY: ${chunk.length}`); chunkList.push(chunk); totalLength += chunk.length; diff --git a/tsconfig.json b/tsconfig.json index 358f9e7..3ab5f06 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - //settings: "baseUrl": ".", "inlineSourceMap": true, "module": "commonjs",