Commit Graph
43 Commits
Author SHA1 Message Date
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
Shinya Ohira 6d9f08eda8 Fix server.method 2014-11-07 23:31:02 +09:00
Shinya Ohira d37305a75c Add register definition to hapi 2014-10-26 23:53:24 +09:00
Jakub Olek 70292d6a64 Object is too restrictive 2014-09-09 11:11:14 +02:00
Jakub Olek cc4e279c37 Fixes for createServer 2014-08-25 14:24:01 +02:00
Jakub Olek 60bc96cefb I have no idea how to do union types for properties
and how to use node modules
2014-08-25 14:23:53 +02:00
Jakub Olek 5d61f02af8 Working on hapi.d.ts 2014-08-25 14:23:42 +02:00