TSLint fixes

This commit is contained in:
Eric Byers
2017-09-08 16:28:32 -05:00
parent 71a142b59c
commit eca6b8dcf8
2 changed files with 6 additions and 4 deletions

View File

@@ -3,6 +3,8 @@
// Definitions by: Eric Byers <https://github.com/EricByers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function stoppable(server:http.Server, grace?:number): http.Server;
import * as http from 'http';
declare function stoppable(server: http.Server, grace?: number): http.Server;
export = stoppable;

View File

@@ -1,8 +1,8 @@
import http = require('http');
import * as http from 'http';
import stoppable = require('stoppable');
const server:http.Server = stoppable(http.createServer());
const server: http.Server = stoppable(http.createServer());
server.stop();
const server2:http.Server = stoppable(http.createServer(), 10000);
const server2: http.Server = stoppable(http.createServer(), 10000);
server2.stop();