Skip to content

Commit

Permalink
Compatibility fix to ignore incorrect Node.js 12 typings
Browse files Browse the repository at this point in the history
Fixes #1350
  • Loading branch information
szmarczak committed Jul 10, 2020
1 parent 16e7f03 commit f7a1379
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,8 @@ export default class Request extends Duplex implements RequestEvents<Request> {
}
}

// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore Node.js 12 has incorrect typing
_write(chunk: any, encoding: BufferEncoding | undefined, callback: (error?: Error | null) => void): void {
const write = (): void => {
this._writeRequest(chunk, encoding, callback);
Expand Down

0 comments on commit f7a1379

Please sign in to comment.