Skip to content

Commit f793008

Browse files
committed
Corrected TypeScript type definitions so that both HTTP and HTTPS servers are supported
1 parent fec8ee6 commit f793008

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Missing type definitions
22

3-
import { Server } from 'http';
3+
import { Server } from 'net';
44

55
export = wrapShutdown;
66

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"repository": "thedillonb/http-shutdown",
2020
"license": "MIT",
2121
"devDependencies": {
22+
"@types/node": "^12.12.6",
2223
"chai": "^3.4.1",
2324
"istanbul": "^0.4.1",
2425
"mocha": "^2.3.4",

0 commit comments

Comments
 (0)