Skip to content

Commit e59133f

Browse files
committed
- Small fixes for express3.d.ts
1 parent c665f58 commit e59133f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

express3.d.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
How to use:
66
77
import express3 = module("express3");
8-
var express:() => express3.Application = require('express');
9-
var app = express();
8+
var express:any = require('express');
9+
var app:express3.Application = express();
1010
1111
*/
1212

1313
declare module "express3" {
1414
//declare function callHack(): app;
1515

16-
interface Application {
16+
//export var app: Application;
17+
18+
interface Application extends Function {
1719
set(name: String, value:any):any;
1820
get(name: String):any;
1921

@@ -49,8 +51,8 @@ declare module "express3" {
4951
use(item: (req: Request, res: Response, next?: Function) => void): Application;
5052

5153
// connect Middlewares:
52-
static(path: String): (req: Request, res: Response, next?: Function) => void;
53-
favicon(): (req: Request, res: Response, next?: Function) => void;
54+
//static(path: String): (req: Request, res: Response, next?: Function) => void;
55+
//favicon(): (req: Request, res: Response, next?: Function) => void;
5456
}
5557

5658
interface Request {
@@ -144,7 +146,7 @@ declare module "express3" {
144146
locals: Object;
145147

146148
render(view: String, callback: (err, html: String) => void);
147-
render(view: String, locals: Object, callback: (err, html: String) => void);
149+
render(view: String, locals: Object, callback?: (err, html: String) => void);
148150
}
149151

150152
interface ResponseSendfileOptions {
@@ -165,6 +167,6 @@ declare module "express3" {
165167

166168
declare module "http" {
167169
import express3 = module("express3");
168-
169-
export function createServer(app: express3.Application): Server;
170+
171+
export function createServer(app: any): Server;
170172
}

0 commit comments

Comments
 (0)