Skip to content

Commit

Permalink
fix http2 type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin committed Feb 20, 2018
1 parent ddda84d commit ae2a2ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@types/methods": "^1.1.0",
"@types/mocha": "^2.2.44",
"@types/ncp": "^2.0.1",
"@types/node": "^9.3.0",
"@types/node": "^9.4.6",
"@types/once": "^1.4.0",
"@types/pify": "^3.0.0",
"@types/proxyquire": "^1.3.28",
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/test-trace-http2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('test-trace-http2', () => {
server.on(
'stream',
// Node 9.4 removed rstWithInternalError() and uses added close().
(s: http2.ServerHttp2Stream&({close: (code: number) => void})) => {
(s: http2.ServerHttp2Stream&({rstWithInternalError: () => void})) => {
setTimeout(() => {
if (semver.satisfies(process.version, '>=9.4')) {
s.close(http2.constants.NGHTTP2_INTERNAL_ERROR);
Expand Down

0 comments on commit ae2a2ca

Please sign in to comment.