Commit Graph

11 Commits

Author SHA1 Message Date
Daniel Cassidy
f06067665b [restify] Correct and tighten type declarations. (#19909)
* Remove spurious exports.

restify does not export the constructors for Server or
Router.

* Correct type of 'bunyan' export.

I'm not sure where the previous definitions came from, but
they definitely do not match restify 5.0.1.

restify.bunyan is not callable. It is a namespace that
contains various helper functions and objects relating to
logging with bunyan.

* Specify stricter types for ServerOptions.

`ca`, `certificate` and `key` are passed through to as
the corresponding options to https.createServer().

`spdy` is passed through to spdy.createServer().

* Correct type signature for formatters.
2017-09-25 12:15:45 -07:00
Daniel Cassidy
a07ced9a79 Fix restify declarations to comply with standard lint rules.
This change requires TypeScript 2.2 because the type
'object' did not exist in 2.1.
2017-09-19 02:36:21 +01:00
Niklas Mollenhauer
bc54a53ac5 Use inherited writeHead method signature
The `writeHead` method gets passed through to the native `response.writeHead`. The `Response` interface extends `http.ServerResponse` which defined the `writeHead` method with different arguments. For maintainability reasons, we should just use the inherited method. Also, the current definition makes this method useless (`writeHead` expects at lease one argument).
2017-09-04 22:30:23 +02:00
Mine Starks
ed8dad43c5 Merge pull request #18626 from stevehipwell/update-restify
Update Restify server interface
2017-08-30 12:47:20 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Steve Hipwell
111e622626 Update restify server interface 2017-08-04 13:49:34 +01:00
Renjith
18747a4fce [restify 5] Fix definition for AuditLogger and RouteOptions (#18036)
* Fix definition for AuditLoggerOptions and RouteOptions

* Beautify

* Fix test cases
2017-07-17 11:12:33 -07:00
Steve Hipwell
9a3dd52efa Update restify to v5 2017-07-05 11:37:14 +01:00
Vinicius Fortuna
580597113e Add test for restify.CORS() 2017-05-14 21:26:11 -04:00
Steve Hipwell
2c0494ee20 Updated restify to lint correctly (#16274)
* Updated restify to lint correctly

* Updated restify request query

* Fixed restify tests error
2017-05-03 10:55:19 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00