Chris Manning
61d2636c2c
Changed hapi IRouteConfiguration handler property to be optional ( #9439 )
...
The hapi IRouteConfiguration handler property should be optional as the
handler can alternatively be provided via the config property using the
handler property of IRouteAdditionalConfigurationOptions.
2016-06-02 21:50:23 +09:00
Robin Joseph
ccb4c316dc
allow objects for hapi's request.log ( #9353 )
2016-05-21 08:26:37 -07:00
Florian Hämmerle
7084dd9c28
allow other than string for state ( #9067 )
...
also objects are allowed (as in the official Hapi.js Cookie Tutorial: http://hapijs.com/tutorials/cookies )
2016-04-24 00:01:46 +09:00
Cody Lundquist
e2de8d512a
Allow Url type to be passed into setUrl() ( #9008 )
2016-04-23 15:04:11 +09:00
Ben Herila
7bf9ee34c6
Fixed IReply definition ( #8960 )
...
* Fixed IReply definition
* Fix a lot of inconsistent whitespace which caused merge issues
* [Hapi] Add support for IReply::state and IReply::unstate
* Add support for IReply::header(name, value, options)
* Reply functions should be returning Response objects
* Specify IHeaderOptions
* [Hapi] Got tests passing locally, also made the other hapi files consistent with the v8.2.0 ts
Sorry about any attribution clobbering but there wasn't much in the git blame view anyways.
2016-04-17 23:48:56 +09:00
Rodrigo López Dato
4814b5682d
IServerViewsAdditionalOptions.layout can be string
2016-04-06 20:56:50 +09:00
Masahiro Wakame
c3a3359efd
Merge pull request #8680 from flowpl/add_flow_control_methods_to_hapi_Response_class
...
added flow control methods to Hapi Response class
2016-03-27 01:30:53 +09:00
Florian Plattner
97323f216b
removed BoomError
2016-03-26 09:38:21 +01:00
Florian Plattner
508671d375
added return types
2016-03-26 09:33:44 +01:00
Florian Plattner
739f891890
added flow control methods to Hapi Response class ( http://hapijs.com/api#flow-control )
2016-03-22 09:20:27 +01:00
Sebastian Sobociński
8ed1a6e27d
fix indentation
2016-03-19 14:27:59 +01:00
Sebastian Sobociński
505037219b
fix indentation
2016-03-19 14:25:47 +01:00
Sebastian Sobociński
29f87e571b
added 2 missing definition to server.auth.default
2016-03-19 14:20:42 +01:00
vvakame
56295f5058
replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped
2016-03-17 00:55:26 +09:00
Jean-Philipe Pellerin
78b5a657f9
Optional callback is different definition + writing tests
2016-02-24 15:49:42 -05:00
Jean-Philipe Pellerin
5d90e28c18
Fixing tabulations
2016-02-24 11:19:34 -05:00
Jean-Philipe Pellerin
9b91ba648d
If no callback is provided, a Promise object is returned.
2016-02-24 11:17:00 -05:00
Kuba Jagoda
c54072093a
Update hapi.d.ts
2016-02-19 18:49:19 +01:00
Eirik Alvær
918608a5e0
Make route configuration response object def conform to 12.0.1.
...
The response object specified in IRouteAdditionalConfigurationOptions did not follow the spec given by the Hapi 12.0.1 documentation. Changes have been made to fix this problem. [Hapi Route Options documentation](http://hapijs.com/api/12.0.1#route-options )
2016-02-16 11:17:22 +01:00
vvakame
9027703c0b
pass npm run all in new definition-tester
2016-02-10 00:16:03 +09:00
Jason
37afc2c83a
improve typings for 12.x
2016-01-15 09:44:10 -08:00
Jean-Philipe Pellerin
a1c9ad7d5b
Added the object in the auth additional configuration options. These changes are based on the braking changes introduced in hapi 12.0.0.
2016-01-14 15:51:30 -05:00
Stanley Goldman
af9d89e725
Basing the duck typed Promise interface on es6
2015-11-30 11:53:31 -05:00
Stanley Goldman
88d8553e62
Adding duck typed Promise Interface
2015-11-30 09:55:33 -05:00
Stanley Goldman
088b384ad6
Hapi does not use bluebird
2015-11-30 09:55:33 -05:00
Stanley Goldman
59e1cd247a
Options could be a string
2015-11-30 09:55:33 -05:00
Stanley Goldman
1c5ba17bf0
Headers is also optional
2015-11-30 09:55:33 -05:00
Stanley Goldman
b8622c4b93
Updating Hapi's IServerInject
2015-11-30 09:55:29 -05:00
Krueger, Brandon
cdaaf0e19b
Updating the 8.2 version as well
2015-10-20 20:26:50 -05:00
Krueger, Brandon
2e1db438fb
server.select() returns either a single server or a list of servers, not void
2015-10-20 20:18:27 -05:00
Masahiro Wakame
3c355e2cf4
Merge pull request #5576 from BrandonCKrueger/hapi-route-auth-correction
...
IRouteAdditionalConfigurationOptions.auth can have either property st…
2015-09-03 02:29:59 +09:00
Holly Leary
9c6860963e
Update hapi.d.ts
...
Add 'isBoom: boolean' in order to know whether the response has an error or not.
2015-08-28 13:48:21 -07:00
Krueger, Brandon
57e0d06f65
IRouteAdditionalConfigurationOptions.auth can have either property strategies or strategy -- both are optional
2015-08-27 15:00:20 -05:00
Oskar Karlsson
475e8b51dc
All methods on Response class return itself
...
This makes it possible to chain the methods
2015-07-28 09:50:20 +02:00
Oskar Karlsson
7661b23edc
Add test case for chained notation
2015-07-28 09:49:03 +02:00
Oskar Karlsson
22ade6d066
Add missing method on Response class
...
Added missing method (type) for setting content-type
2015-07-28 09:37:47 +02:00
Masahiro Wakame
18caf56b0b
Merge pull request #4853 from Kilix/fix-hapi-tls-type
...
Add Object type for tls in server.connection options
2015-07-15 01:59:13 +09:00
Loc Nguyen
ab710e1ba0
Fix typo in server connection object interface name. Changed ISeverConnectionOptions to IServerConnectionOptions and used the type in test file to prove it is working
2015-07-13 01:44:13 -07:00
Alexandre BODIN
e850267d12
Add Object type for tls in server.connection options
2015-07-07 18:13:58 +02:00
Rene Eichhorn
92d2e42c07
added continue for hapi IReply
2015-06-22 19:57:04 +02:00
Adam Carr
1a364df8db
Adding test for optional hapi config.validate parameters
2015-04-09 12:01:48 -04:00
Adam Carr
f3205f05f4
making IRouteAdditionalConfigurationOptions validate properties optional
2015-04-09 11:57:46 -04:00
Adam Carr
e322423379
updating IServerOptions for optional properties
2015-03-30 18:43:43 -04:00
Adam Carr
25ab55fa3c
making IRouteHandlerConfig parameters optional
2015-03-30 18:33:01 -04:00
Adam Carr
48de82851f
Updating hapi.d.ts to support optional parameters when registering a plugin
2015-03-30 16:19:10 -04:00
JasonS
487ec8eff1
remove old hapi definition because of export bug.
2015-03-10 13:31:05 -07:00
JasonS
5a0ae186de
add typing for bluebird Promise.promisify, and new typing for hapi v8.2.0. old hapi definition renamed to "hapi-pre-8.2.d.ts" as what version it targets is unknown.
2015-03-10 13:24:16 -07:00
Victor Martinez
68a89b091e
Update hapi.d.ts
...
Made connection options optional.
2014-12-25 18:52:43 -04:00
Victor Martinez
884f9a34fc
Update hapi.d.ts correction
...
A correction to the previous commit
2014-12-24 08:25:42 -04:00
Victor Martinez
dfea00fd45
Update hapi.d.ts
...
Add definition for connection method on the Server object.
2014-12-24 05:30:38 -04:00