Commit Graph

106 Commits

Author SHA1 Message Date
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Mohamed Hegazy
98642b1d8f Fix https://github.com/Microsoft/TypeScript/issues/9494: remove relative import to serve-static 2016-07-06 14:24:56 -07:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
Ryan Cavanaugh
f841c2423f Remove references to 'express' 2016-04-27 10:24:01 -07:00
Ryan Cavanaugh
4a433abbf4 Unwrap all lone ambient external modules 2016-04-22 14:12:45 -07:00
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