Commit Graph

94 Commits

Author SHA1 Message Date
Kenji-Imamura
fb2e78984b fix express.NextFunction 2016-03-22 12:58:42 +09:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
David Gardiner
40191cf78c Remove circular dependency
express.d.ts and serve-static.d.ts had a circular dependency, which causes NuGet pain.
Extract core definitions from express.d.ts and move them to express-serve-static-core.d.ts
Update serve-static.d.ts to depend on express-serve-static-core.d.ts
2016-02-19 10:05:49 +10:30
Horiuchi_H
bc92442c07 change CRLF to LF 2016-02-08 12:01:16 +09:00
Leo Liang
f743b7f495 express.d.ts: define next() function type 2016-02-04 14:26:46 +08:00
Masahiro Wakame
dd4626a4e2 Merge pull request #7581 from brierel/master
Fixed deprecated express 3.x functions
2016-01-23 21:53:28 +09:00
Nimish Telang
ce6e288c4d Update express router type, to work around typescript issue #1805 2016-01-15 16:46:36 +00:00
brierel
941b8aabd2 Fixed deprecated express 3.x functions
- Fixed deprecated express 3.x functions as reporte in issue https://github.com/DefinitelyTyped/DefinitelyTyped/issues/7507
- Also updated use() fonction when having only one handler parameter
2016-01-12 11:39:29 +01:00
Martin Mouterde
3b6d429127 Missing signature for router.use
http://expressjs.com/4x/api.html#router.use => this function could be used with (path:string,router:router)
2015-11-13 15:54:23 +01:00
Keepertje
a6be18ec5d Use regexp in use 2015-10-08 16:11:56 +02:00
kpisaksen
64f0e13df8 Correcting array error
When I added string array to the path parameter on use, I accidentally added ErrorRequestHandler array too. It's not removed.
2015-09-17 16:16:23 +02:00
Horiuchi_H
cf4a72221d Merge pull request #5801 from DerKnerd/patch-1
Update express.d.ts
2015-09-15 11:17:59 +09:00
Imanuel Ulbricht
a0e8f7986a Update express.d.ts
added baseUrl and app property to express.Request.
2015-09-13 21:52:57 +02:00
kpisaksen
bec5648ef7 Include Arrays in use method
Express 4.x API reference for app.use includes the use of Arrays. This update adds this to the definition file.
2015-09-11 19:05:59 +02:00
Cyril Schumacher
c4759462f7 Update definition: express. 2015-08-15 15:46:12 +02:00
Cyril Schumacher
15d55818e5 Add the method "head". 2015-08-15 15:25:14 +02:00
Kyle Gretchev
52ef0043e7 Converted imports to ES6 module syntax 2015-08-04 20:47:16 -04:00
Masahiro Wakame
00e3487ce1 Merge pull request #4619 from vilic/patch-2
Update multer declaration
2015-07-03 21:14:31 +09:00
Ole Rehmsen
469065e77d Import type definitions for express.static from serve-static instead of only supporting the call signature.
Express exposes serve-static as express.static: https://github.com/strongloop/express/blob/master/lib/express.js#L60
Prior to this change, the type definitions would only consist of the call signature of serve-static, but serve static also has member variables. By importing the entire type definition from serve-static and using it for express.static, both the call signature and the members can be used.
2015-06-18 19:19:53 +02:00
vilicvane
376aa3d4ba now multer extended files property 2015-06-11 18:06:03 +08:00
Elisée
16c6bbf0c9 express: Request.host deprecated, use .hostname 2015-05-25 08:11:12 +02:00
Robert Hencke
712a127877 Mark deprecated functions as @deprecated. 2015-04-19 14:51:36 -04:00
Simon Krajewski
29ebb788d0 replace nbsp by normal spaces 2015-03-10 10:04:00 +01:00
Jason Tremper
a7136b71f8 express Response.sendStatus returns Response (not a Send object) 2015-01-04 09:32:29 -05:00
vvakame
070fd9d268 remove not required tscparams 2015-01-02 20:48:15 +09:00
Pekka Leppänen
a3b94d3dac Added missing property to Response interface 2014-11-25 10:41:09 +02:00
Pekka Leppänen
e614990852 Added sendStatus() to express.Response
Added as described in documentation: http://expressjs.com/4x/api.html#res.sendStatus
2014-09-16 14:49:38 +03:00
Masahiro Wakame
e0a1886cc2 Merge pull request #2808 from PekkaPLeppanen/patch-1
Added definition to route parameter handling
2014-09-15 23:36:38 +09:00
Pekka Leppänen
e7c816932c Added definition to route parameter handling
As stated in Express docs: "Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() API". This case for app.param() is currently missing from the definitions.
2014-09-11 11:41:35 +03:00
Scott Yang
15f02725f5 Update express.d.ts set/get types
Express set/get actually allows any types, as seen from paragraphs directly under Settings on official docs at http://expressjs.com/api
2014-09-07 22:54:08 -07:00
Mohamed Hegazy
2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
vvakame
d9aaf6bd95 resolve duplicate for #2676 2014-08-23 15:05:38 +09:00
vvakame
8512d8f946 Merge branch 'master' of github.com:vilic/DefinitelyTyped into vilic-master 2014-08-23 15:03:46 +09:00
Masahiro Wakame
99e650abb2 Merge pull request #2676 from damianog/patch-11
Update express.d.ts deprecate res.sendfile
2014-08-20 13:20:38 +09:00
Horiuchi_H
688f734b69 add semicolon 2014-08-19 19:37:13 +09:00
damianog
59ccd2392f Update express.d.ts deprecate res.sendfile
deprecate `res.sendfile` -- use `res.sendFile` instead
2014-08-17 11:09:59 +02:00
VILIC VANE
5e202a9846 add res.sendFile and mark res.sendfile as deprecated 2014-08-10 21:34:48 +08:00
Santi Albo
dfc28f9b3e Merge branch 'master' into express4
Conflicts:
	express/express.d.ts
2014-07-17 19:25:52 +01:00
Santi Albo
6db771a259 Add Handler interface for backwards compatibility on Passport type definitions 2014-07-17 19:23:22 +01:00
Santi Albo
9dbba87a0d Fix headers 2014-07-17 19:20:44 +01:00
Santi Albo
e039638763 Add more tests 2014-07-17 13:22:19 +01:00
Santi Albo
43f1770f23 use takes multiple request handlers now 2014-07-17 13:22:10 +01:00
Santi Albo
8b07ce8811 A Router is also a RequestHandler 2014-07-17 13:18:27 +01:00
Santi Albo
14fdf0edc6 Remove express 3 type definitions 2014-07-17 13:12:44 +01:00
Bart van der Schoor
1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
Santi Albo
57a3b6e1b8 Add basic type definitions for express 4.x 2014-06-03 13:23:04 +01:00
Lior Mualem
98c163185e Added ServerRequest interface to express request interface - to support streaming functions. 2014-05-05 12:03:18 +03:00
Basarat Ali Syed
a83d95905a Merge pull request #1939 from rageshkrishna/fix_1636
Fixes #1636: Add get(setting) definition on express.Application
2014-04-12 01:50:05 +10:00