mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
referenceable types throughout node and express
All node modules and classes can be referenced by type name. External module support remains unchanged, but now static type information is available for all node modules and types without needing to go through the external module definitions. Similar for express.
This commit is contained in:
Vendored
+5
-3
@@ -12,8 +12,10 @@
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module "express" { export = ExpressStatic; }
|
||||
declare function ExpressStatic(): ExpressStatic.Express
|
||||
declare module "express" { var _: ExpressStatic; export = _; }
|
||||
interface ExpressStatic{
|
||||
(): ExpressStatic.Express
|
||||
}
|
||||
declare module ExpressStatic {
|
||||
|
||||
export interface IRoute {
|
||||
@@ -546,7 +548,7 @@ declare module ExpressStatic {
|
||||
(body: any): Response;
|
||||
}
|
||||
|
||||
export interface Response extends NodeHttp.ServerResponse {
|
||||
export interface Response extends NodeJs.Http.ServerResponse {
|
||||
/**
|
||||
* Set status `code`.
|
||||
*
|
||||
|
||||
Vendored
+1048
-969
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user