Commit Graph

73 Commits

Author SHA1 Message Date
Ryan Cavanaugh
b488f3cb5f Merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
5d004be8ba Merge commit 'upstream/master~600' into merge_7_25 2016-07-26 00:22:12 -07:00
Ryan Cavanaugh
e4421f5ebe Merge commit 'upstream/master~650' into merge_7_25 2016-07-25 23:49:05 -07:00
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Prashant Tiwari
36ce4b68fa Fix request.raw.req type
Per the hapi [code](https://github.com/hapijs/hapi/blob/master/lib/request.js) and [documentation](http://hapijs.com/api#request-object) the correct type for the raw http request object `request.raw.req` is actually `http.IncomingMessage` and not `http.ClientRequest`.
2016-07-09 14:51:05 +05:30
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Raghav Katyal
c17b1b78b8 OldUMD and many other module fixes. 2016-06-20 14:15:13 -07:00
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
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
Ryan Cavanaugh
541e24b685 Fix angularjs/angular; 'export declare'/'declare export' 2016-04-25 13:02:25 -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
Ryan Cavanaugh
4a433abbf4 Unwrap all lone ambient external modules 2016-04-22 14:12:45 -07: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