|
6 | 6 | */ |
7 | 7 |
|
8 | 8 | import {performance} from 'perf_hooks'; |
| 9 | +import type {WriteStream} from 'tty'; |
9 | 10 | import chalk = require('chalk'); |
10 | 11 | import exit = require('exit'); |
11 | 12 | import * as fs from 'graceful-fs'; |
@@ -142,7 +143,7 @@ export async function runCLI( |
142 | 143 | const buildContextsAndHasteMaps = async ( |
143 | 144 | configs: Array<Config.ProjectConfig>, |
144 | 145 | globalConfig: Config.GlobalConfig, |
145 | | - outputStream: NodeJS.WriteStream, |
| 146 | + outputStream: WriteStream, |
146 | 147 | ) => { |
147 | 148 | const hasteMapInstances = Array(configs.length); |
148 | 149 | const contexts = await Promise.all( |
@@ -171,7 +172,7 @@ const _run10000 = async ( |
171 | 172 | globalConfig: Config.GlobalConfig, |
172 | 173 | configs: Array<Config.ProjectConfig>, |
173 | 174 | hasDeprecationWarnings: boolean, |
174 | | - outputStream: NodeJS.WriteStream, |
| 175 | + outputStream: WriteStream, |
175 | 176 | onComplete: OnCompleteCallback, |
176 | 177 | ) => { |
177 | 178 | // Queries to hg/git can take a while, so we need to start the process |
@@ -247,7 +248,7 @@ const runWatch = async ( |
247 | 248 | _configs: Array<Config.ProjectConfig>, |
248 | 249 | hasDeprecationWarnings: boolean, |
249 | 250 | globalConfig: Config.GlobalConfig, |
250 | | - outputStream: NodeJS.WriteStream, |
| 251 | + outputStream: WriteStream, |
251 | 252 | hasteMapInstances: Array<IHasteMap>, |
252 | 253 | filter?: Filter, |
253 | 254 | ) => { |
@@ -282,7 +283,7 @@ const runWatch = async ( |
282 | 283 | const runWithoutWatch = async ( |
283 | 284 | globalConfig: Config.GlobalConfig, |
284 | 285 | contexts: Array<TestContext>, |
285 | | - outputStream: NodeJS.WriteStream, |
| 286 | + outputStream: WriteStream, |
286 | 287 | onComplete: OnCompleteCallback, |
287 | 288 | changedFilesPromise?: ChangedFilesPromise, |
288 | 289 | filter?: Filter, |
|
0 commit comments