Skip to content

Commit

Permalink
fix(flow): Use net$Socket instead of importing the type to work aroun…
Browse files Browse the repository at this point in the history
…d error
  • Loading branch information
vinsonchuong committed Aug 31, 2019
1 parent df8dbff commit 89d2c51
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 191 deletions.
3 changes: 1 addition & 2 deletions lib/node/http-upgrade-handler.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* @flow */
import type { IncomingMessage } from 'http'
import type { Socket } from 'net'

export type HttpUpgradeHandler = (
request: IncomingMessage,
socket: Socket,
socket: net$Socket,
head: Buffer
) => void | Promise<void>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
},
"devDependencies": {
"ava": "^2.3.0",
"build-esm": "^4.2.1",
"flow-bin": "^0.106.2",
"build-esm": "^4.2.2",
"flow-bin": "^0.106.3",
"flow-typed": "^2.6.1",
"heliograph": "^4.10.5",
"into-stream": "^5.1.0",
Expand Down
Loading

0 comments on commit 89d2c51

Please sign in to comment.