Commit Graph
119 Commits
Author SHA1 Message Date
AndyandGitHub ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
AbraaoAlvesandMohamed Hegazy fefb1124c3 export IRouterHandler too (#13840)
Export IRouterHandler like IRouterMatcher.

I' like to use and extend it in global middlewares.
2017-01-17 22:03:22 -08:00
AndyandGitHub 2f71174636 Restructure to support old versions (#13811)
* Restructure to support old versions

* Fix tests
2017-01-06 12:36:57 -08:00
AndyandGitHub a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Stefan Dobrev fe6cc1d77b [express] Add Router constructor options
More info [here](http://expressjs.com/en/api.html#express.router)
2016-11-15 09:07:01 +02:00
Andy Hanson 91d1d6d60f Merge remote-tracking branch 'origin/master' into merge_21sep 2016-09-21 09:45:05 -07:00
TonyYangandMasahiro Wakame e0e86e3535 [express] http.createServer can take express app (#11292)
* Create pug-test.ts

* Test http.createServer can take express app

* Delete this
2016-09-19 16:16:55 +09:00
Paul van Brenk 5607f54def Merge master into typings-2.0
* Changed Files
2016-08-18 14:53:30 -07:00
TonyYangandGitHub 5baa6e08ea express.Application is compatible with http.createServer
Add test case: express.Application is compatible with http.createServer
2016-08-18 11:34:00 +08:00
Nathan Shively-Sanders 9019823501 Merge branch 'master' into types-2.0-2016-08-10 2016-08-10 16:17:43 -07:00
Kenji-Imamura 4cb9c9032e fix definitions of express req.accepts functions 2016-08-05 18:10:45 +09:00
Ryan Cavanaugh b488f3cb5f Merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-27 10:57:46 -07:00
Ryan Cavanaugh a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Cao JiannanandGitHub 5fd6d6b4ea expose IRouterHandler 2016-07-09 02:52:18 +08: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