Commit Graph

45 Commits

Author SHA1 Message Date
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
Boris Yankov
c98eebb137 Rename all definition files, remove versions 2013-01-17 17:17:27 +02:00
Boris Yankov
1465409108 Fix express definitions, remove unnecessary post, put & del definitions 2013-01-03 12:36:40 +02:00
Boris Yankov
9952256075 Fix express get method definitions 2013-01-03 12:23:57 +02:00
Boris Yankov
7c82efb17a Update reference paths 2012-11-19 01:28:08 +02:00
Boris Yankov
c91c45f9ae Move definitions and test in separate folders
This enables each definition to have a readme if necessary.
Also a .json metadata file to help with package managers.
And last, to have different versions of the definitions.
2012-11-18 22:28:44 +02:00