@@ -11,9 +11,9 @@ var app:express3.Application = express();
11
11
*/
12
12
13
13
declare module "express3" {
14
- import stream = module ( "stream" ) ;
15
- import express3 = module ( "express3" ) ;
16
- import http = module ( "http" )
14
+ import stream = require ( "stream" ) ;
15
+ import express3 = require ( "express3" ) ;
16
+ import http = require ( "http" )
17
17
//declare function callHack(): app;
18
18
19
19
//export var app: Application;
@@ -30,8 +30,8 @@ declare module "express3" {
30
30
enable ( name : String ) :void ;
31
31
disable ( name : String ) :void ;
32
32
33
- enabled ( name : String ) :bool ;
34
- disabled ( name : String ) :bool ;
33
+ enabled ( name : String ) :boolean ;
34
+ disabled ( name : String ) :boolean ;
35
35
36
36
configure ( callback : ( ) => void ) :void ;
37
37
configure ( env : String , callback : ( ) => void ) :void ;
@@ -91,21 +91,21 @@ declare module "express3" {
91
91
accepts ( type : String [ ] ) : void ;
92
92
accepted : RequestAccepted [ ] ;
93
93
94
- is ( type : String ) : bool ;
94
+ is ( type : String ) : boolean ;
95
95
ip : String ;
96
96
ips : String [ ] ;
97
97
path : String ;
98
98
host : String ;
99
- fresh : bool ;
100
- stale : bool ;
101
- xhr : bool ;
99
+ fresh : boolean ;
100
+ stale : boolean ;
101
+ xhr : boolean ;
102
102
protocol : String ;
103
- secure : bool ;
103
+ secure : boolean ;
104
104
subdomains : String [ ] ;
105
105
acceptedLanguages : String [ ] ;
106
106
acceptedCharsets : String [ ] ;
107
- acceptsCharset ( charset : String ) : bool ;
108
- acceptsLanguage ( lang : String ) : bool ;
107
+ acceptsCharset ( charset : String ) : boolean ;
108
+ acceptsLanguage ( lang : String ) : boolean ;
109
109
}
110
110
111
111
interface RequestAccepted {
@@ -129,7 +129,7 @@ declare module "express3" {
129
129
path ?: string ;
130
130
name ?: string ;
131
131
type ?: string ;
132
- hash ?: bool ;
132
+ hash ?: boolean ;
133
133
lastModifiedDate ?: Date ;
134
134
_writeStream ?: any ;
135
135
length ?: number ;
@@ -194,16 +194,16 @@ declare module "express3" {
194
194
interface ResponseCookieOptions {
195
195
domain ?: String ;
196
196
path ?: String ;
197
- secure ?: bool ;
197
+ secure ?: boolean ;
198
198
expires ?: Date ;
199
199
maxAge ?: number ;
200
- httpOnly ?: bool ;
201
- signed ?: bool ;
200
+ httpOnly ?: boolean ;
201
+ signed ?: boolean ;
202
202
}
203
203
}
204
204
205
205
declare module "http" {
206
- import express3 = module ( "express3" ) ;
206
+ import express3 = require ( "express3" ) ;
207
207
208
208
export function createServer ( app : any ) : Server ;
209
209
}
0 commit comments