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
Basarat Ali Syed
eac9e65b26
Merge pull request #1994 from yortus/open-express.d.ts-interfaces
...
Open express.d.ts interfaces
2014-04-10 19:35:19 +10:00
Alan
d45e918d66
Fixed express definition and added asciify definitions.
2014-04-06 02:43:49 -04:00
Troy Gerwien
b9c60cc42b
open express.d.ts interfaces
...
- provides open interfaces for Request, Response, Application
- express's interfaces remain the same, but extend the open ones
2014-04-06 11:51:38 +08:00
Ragesh Krishna
1f81d75c3f
Fixes #1636 : Add get(setting) definition on express.Application
2014-03-30 17:35:10 +05:30
John Purcell
f5b19e8dd7
Return http.Server from express.listen()
2014-03-26 15:07:49 -04:00
Masahiro Wakame
3c53cee436
Merge pull request #1682 from scriby/patch-1
...
Add support for app.patch to express.d.ts
2014-02-24 11:14:31 +09:00
vagrant
18c992059d
add missing export function basicAuth(callback: (user: string, pass: string) => boolean, realm?: string): Handler;
2014-02-14 16:52:45 +00:00
scriby
0aa867fe9a
Add support for app.patch
2014-02-11 15:40:08 -05:00
George Valotasios
0c7075602f
Merge upstream into express-router
2013-12-18 10:26:20 +01:00
George Valotasios
47bcdb5cd8
Just a dummy eol to cause travis to rebuild
2013-12-16 15:27:51 +01:00
George Valotasios
e9402f9f23
Removed the extends from the IRouter definition
2013-12-13 14:22:49 +01:00
George Valotasios
bdd3ad1e62
Make use of generics for IRouter
...
so that we do not have to override everyting at the Application
interface
2013-12-13 13:13:11 +01:00
George Valotasios
6c53d6db83
Redifine IRouter method signatures
...
with in the Application interface to return an Application object
2013-12-13 11:21:17 +01:00
George Valotasios
27207fc221
Better definition of the express Router class
2013-12-13 11:08:42 +01:00
Jed Mao
1ee4c773d0
More specific Express types
2013-12-12 11:07:02 -06:00