Commit Graph

12 Commits

Author SHA1 Message Date
Andy
5761cfc6f2 express-serve-static-core: Restore compatibility with ts2.1 (#21044) 2017-10-26 12:25:08 -07:00
Alexandre
f8d0b72ff4 Allow typing Express body, params, query and cookies through generics (#20820)
* Allow typing express body, params, query and cookies through generics

* Increase minor version

* Add ts version comment

* Fix ts requirement comment typo

* Bump all ts version packages

* Bump Morgan package
2017-10-23 17:23:31 -07:00
makepost
9079d17666 [express] Body parsing middleware included in 4.16 (#20624)
* express.json() and express.urlencoded()

* Express: Add tslint.json
2017-10-23 11:37:58 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Hiroshi Yamaguchi
7b604e3e6a Fix header() return type
req.header() returns an array of strings if and only if "set-cookie"
See: https://nodejs.org/api/http.html#http_message_headers
2017-09-08 17:24:06 +09:00
Andy
924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
e020873
517b8d4dd7 [express] fix accepts return 2017-07-03 01:14:21 +02:00
Andy
b9afd83a91 express-serve-static-core: Don't redeclare headers from http.IncomingMessage (#17229) 2017-06-16 07:11:36 -07:00
Andy
1ee9a51f35 Avoid unnecessary /// <reference types="node" /> in tests (#17226) 2017-06-15 14:53:16 -07:00
Martin Zagora
72af5467ee set TS version to 2.2 2017-06-07 16:18:28 +10:00
Martin Zagora
7f9adbee73 express header methods can return undefined 2017-06-07 16:00:41 +10:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00