mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
express.Application is compatible with http.createServer
Add test case: express.Application is compatible with http.createServer
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/// <reference path="express.d.ts" />
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
import * as express from 'express';
|
||||
var app = express();
|
||||
@@ -91,3 +92,10 @@ app.listen(3000);
|
||||
|
||||
const next: express.NextFunction = () => {};
|
||||
const nextWithArgument: express.NextFunction = (err: any) => {};
|
||||
|
||||
/**
|
||||
* The express.Application is compatible with http.createServer
|
||||
*/
|
||||
|
||||
import * as http from 'http';
|
||||
http.createServer(app);
|
||||
|
||||
Reference in New Issue
Block a user