diff --git a/types/stoppable/index.d.ts b/types/stoppable/index.d.ts index e3ad02919c..395dd828c8 100644 --- a/types/stoppable/index.d.ts +++ b/types/stoppable/index.d.ts @@ -6,6 +6,6 @@ /// import { Server } from 'http'; -declare function stoppable(server: Server, grace?: number): http.Server; +declare function stoppable(server: Server, grace?: number): Server; export = stoppable; diff --git a/types/stoppable/stoppable-tests.ts b/types/stoppable/stoppable-tests.ts index 69fc576c9c..84cf826bef 100644 --- a/types/stoppable/stoppable-tests.ts +++ b/types/stoppable/stoppable-tests.ts @@ -1,4 +1,4 @@ -/// +import * as http from 'http'; import stoppable = require('stoppable'); const server: http.Server = stoppable(http.createServer());