build: update typescript and webpack (#22776)

This commit is contained in:
Samuel Attard 2020-03-19 16:55:49 -07:00 committed by GitHub
parent f1a0d5e811
commit aa15a2cc03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 211 additions and 159 deletions

View file

@ -1,6 +1,7 @@
import { Buffer } from 'buffer'
import { EventEmitter } from 'events'
import * as fs from 'fs'
import { Socket } from 'net'
import * as path from 'path'
import * as util from 'util'
@ -26,7 +27,7 @@ if (process.platform === 'win32') {
// See https://nodejs.org/api/util.html#util_util_format_format_args
return process.log(util.format(...args) + '\n')
}
const streamWrite: NodeJS.WritableStream['write'] = function (chunk: Buffer | string, encoding?: any, callback?: Function) {
const streamWrite: Socket['write'] = function (chunk: Buffer | string, encoding?: any, callback?: Function) {
if (Buffer.isBuffer(chunk)) {
chunk = chunk.toString(encoding)
}