Commit Graph

11 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
2a9d2f8d59
Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Alex Brick
a324e89609 [swagger-tools] Supporting optional parameters and typed requests (#22828)
Two changes:

1) We are now allowing the parameters of a request to be typed. This
adds more type safety to consumers.

2) We support optional parameters in the request.

For (2), the root cause is this issue in how Typescript handles
--strictNullChecking:
https://github.com/Microsoft/TypeScript/issues/9235
2018-01-11 17:49:40 -08:00
Alex Brick
f3dc15c020 [swagger-tools] Fixing type of req.swagger field
I managed to find some tests in the `swagger-tools` codebase for this
field, so I was able to verify the typing. I found a number of
mistakes I had made. I've also changed a few fields to `any` where I
had no good structure to give them.
2017-11-17 10:59:37 +01:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Alex Brick
091c96bace [swagger-tools] Adding strong typing to Swagger Router requests
Previously, we were using the "NextHandleFunction" from connect, which
just takes in a raw IncomingMessage. However, swagger-tools actually
augments the request with a "swagger" field which contains information
from swagger-tools. The types are now updated to reflect this.
2017-09-05 15:03:11 +02:00
Nick Zelei
5467f51f78 updated SwaggerRouterOptions. (#18613)
updated SwaggerRouterOptions to include missing option.
2017-08-04 16:43:43 -07:00
Michiel de Bruijne
f8c68213bf [node] set correct type for process.env and fix node dependents 2017-06-24 21:39:39 +02:00
Alex Brick
151354bf00 Swagger UI 2.0 does not require options 2017-06-19 12:24:10 +02:00
Alex Brick
16efcb943d Adding types for swagger-tools
https://github.com/apigee-127/swagger-tools
2017-06-13 11:50:09 +02:00