Skip to content

Commit 25cc142

Browse files
committed
Merge pull request #32 from dbrattli/master
Upgraded for TypeScript 0.9.1.1
2 parents 40ce0b0 + 2cb3875 commit 25cc142

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

express3.d.ts

+17-17
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ var app:express3.Application = express();
1111
*/
1212

1313
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")
1717
//declare function callHack(): app;
1818

1919
//export var app: Application;
@@ -30,8 +30,8 @@ declare module "express3" {
3030
enable(name: String):void;
3131
disable(name: String):void;
3232

33-
enabled(name: String):bool;
34-
disabled(name: String):bool;
33+
enabled(name: String):boolean;
34+
disabled(name: String):boolean;
3535

3636
configure(callback: () => void):void;
3737
configure(env: String, callback: () => void):void;
@@ -91,21 +91,21 @@ declare module "express3" {
9191
accepts(type: String[]): void;
9292
accepted: RequestAccepted[];
9393

94-
is(type: String): bool;
94+
is(type: String): boolean;
9595
ip: String;
9696
ips: String[];
9797
path: String;
9898
host: String;
99-
fresh: bool;
100-
stale: bool;
101-
xhr: bool;
99+
fresh: boolean;
100+
stale: boolean;
101+
xhr: boolean;
102102
protocol: String;
103-
secure: bool;
103+
secure: boolean;
104104
subdomains: String[];
105105
acceptedLanguages: String[];
106106
acceptedCharsets: String[];
107-
acceptsCharset(charset: String): bool;
108-
acceptsLanguage(lang: String): bool;
107+
acceptsCharset(charset: String): boolean;
108+
acceptsLanguage(lang: String): boolean;
109109
}
110110

111111
interface RequestAccepted {
@@ -129,7 +129,7 @@ declare module "express3" {
129129
path?: string;
130130
name?: string;
131131
type?: string;
132-
hash?: bool;
132+
hash?: boolean;
133133
lastModifiedDate?: Date;
134134
_writeStream?: any;
135135
length?: number;
@@ -194,16 +194,16 @@ declare module "express3" {
194194
interface ResponseCookieOptions {
195195
domain?: String;
196196
path?: String;
197-
secure?: bool;
197+
secure?: boolean;
198198
expires?: Date;
199199
maxAge?: number;
200-
httpOnly?: bool;
201-
signed?: bool;
200+
httpOnly?: boolean;
201+
signed?: boolean;
202202
}
203203
}
204204

205205
declare module "http" {
206-
import express3 = module("express3");
206+
import express3 = require("express3");
207207

208208
export function createServer(app: any): Server;
209209
}

0 commit comments

Comments
 (0)