Commit Graph
55 Commits
Author SHA1 Message Date
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
George Valotasios 183a9c40ac The options of the Router are optional 2013-12-10 11:11:13 +01:00
George Valotasios cb2beb72e4 Experimenting with Router definition 2013-12-10 11:05:18 +01:00
Jeffery Grajkowski 798dbfbf8f Converting ungeneric "Array" to "any[]"
TypeScript 0.9.5 beta does not allow generic type references without the type argument.  This code will still compile for 0.9.1 users.  Flight and Ember have further compile problems in 0.9.5 that I don't feel qualified to address as I'm not versed in those libraries.
2013-11-26 10:29:46 -08:00
Chris Cowan 89548662d0 express.d.ts: tabs -> spaces 2013-11-23 18:07:17 -06:00
Chris Cowan 09ad8f8283 Fixes for express definitions.
app.listen is fixed so that it can be called with a port, hostname, and
optional callback without a backlog parameter.

app.listen is fixed so callback parameter is always optional.

CSRF protection middleware definition is fixed so options parameter is
optional.

req.csrfToken method is added since the CSRF protection middleware has
been updated.
2013-11-23 16:40:32 -06:00
basarat 3ce9de0efb express: implicity any and formatting 2013-11-16 04:29:03 +11:00
basarat 232b0fb624 Merge pull request #1077 from sgronblo/improve_express_d_ts
Namespacing for express definition
2013-11-15 02:58:02 -08:00
vvakame 2708bc05cd Fixed tsc failed on Node.js v0.8.25 2013-10-03 11:23:38 +09:00
vvakame 3fe1f6bc4e Fixed to CI test passing 2013-10-03 10:18:58 +09:00
Sam Gronblom 55d38312e9 A bunch of fixes to express declaration
- Move Express-prefixed interface names into internal module as
  unprefixed names
- The importing code will use express.Response instead of
  ExpressServerResponse
- Internal definitions can just use Response instead of
  ExpressServerResponse
- Response should extend http.Response to be able to type check .end
  for example
2013-09-24 12:00:17 +09:00
Alex Varju 9c20415c87 improve express signatures 2013-09-18 17:19:05 -07:00
Alex Varju 93cba1a24c add missing 'routes' property to application 2013-09-10 18:34:53 -07:00
Boris Yankov ea15619251 Replace multiple 'module' keywords with 'require' 2013-08-07 18:26:38 +03:00
Boris Yankov 17f95ed26d Fix express tests 2013-08-07 18:17:54 +03:00
Andrew Gaspar 7463b00681 Made Q have better generics support made possible be v0.9.0.1. Also eliminated redundant function definitions in express. 2013-06-30 17:59:21 -07:00
Andrew Gaspar 82ae26b96c Fixed express module definition. 2013-06-20 22:41:35 -07:00
Niklas Mollenhauer da62ac10b3 bool -> boolean 2013-06-19 00:48:14 +02:00
Diullei Gomes 8a17feb7d8 express definitions updated. 2013-02-13 21:17:02 -02:00
Diullei Gomes e7d32b654f fix express 3.1 definitions to be used as a module #264 2013-02-11 11:56:36 -02:00
Diullei Gomes ae4876ab35 fix express 3.1 definitions to be used as a module #264 2013-02-11 11:51:31 -02:00
Diullei Gomes 0156e9c160 fix express 3.1 definitions to be used as a module #264 2013-02-11 11:40:53 -02:00
Diullei Gomes be07cdcd8c type definitions for express 3.1 #264 2013-02-11 11:40:50 -02:00
Diullei Gomes 283e996bd2 type definitions for express 3.1 #264 2013-02-10 16:36:42 -02:00
Boris Yankov 209d95071a Update reference paths 2013-01-17 20:03:30 +02:00