Commit Graph

168 Commits

Author SHA1 Message Date
Justin Simms
2056f990d0 Fix issues identified with the Hapi 17 update (#23691)
* Fix issues identified with the Hapi 17 update

This commit introduces a variety of changes, primarily fixes, but it
also collapses the typings into a single file.  Collapsing it into a
single file means simpler augmentation of types, which is common in
Hapi.

Thank you to SimonSchick for contributing a number of changes here.

* fix response property
2018-02-22 07:06:11 -08:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Justin Simms
cac8ed01e6 Fix for the plugin array type. 2018-02-09 17:51:52 -06:00
Justin Simms
5763bd6353 Fix for server route options type 2018-02-08 23:56:29 -06:00
Justin Simms
b7edd5c1db Add generic types for plugins 2018-02-08 23:41:49 -06:00
Justin Simms
d6324664f5 Making some of the typings more specific. 2018-02-08 22:07:48 -06:00
Justin Simms
1d964920cf Remove the enums 2018-02-08 20:15:33 -06:00
Justin Simms
4bfb2047ed fix 2018-02-08 20:03:21 -06:00
Justin Simms
be8330e0b8 Apply fixes suggested in code review 2018-02-08 20:01:15 -06:00
Justin Simms
c423899d98 Fix the remaining failing tests and add promise return types for async functions. 2018-02-07 22:35:26 -06:00
Rafael S. Fijalkowski
b7757327fd Add server route validation test file. 2018-02-07 22:00:59 -06:00
Rafael S. Fijalkowski
ab78281950 Set "strictNullChecks" true. 2018-02-07 22:00:59 -06:00
Rafael S. Fijalkowski
c447ab3de3 Revert "Set "strictNullChecks" true."
This reverts commit 8d1ffa7
2018-02-07 22:00:59 -06:00
Rafael S. Fijalkowski
80492c378e Set "strictNullChecks" true. 2018-02-07 22:00:59 -06:00
rafaelsouzaf
3503fa651a Remove all lint rules. 2018-02-07 22:00:59 -06:00
rafaelsouzaf
f91e43df7a Hapi v17 setup. 2018-02-07 22:00:59 -06:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Timon van Spronsen
3bcf6f3ab2 Change Boom version for dependents 2018-01-02 09:27:33 +01:00
Andy
8b10461a43
Revert "Merge pull request #22107 from rafaelsouzaf/master" (#22417)
This reverts commit fb68b21bea, reversing
changes made to ae47b3c7d0.
2017-12-21 07:23:39 -08:00
rafaelsouzaf
62ae76a50e Add Iron typings, wrote by @SimonSchick 2017-12-17 19:48:08 -03:00
rafaelsouzaf
065b0707d4 Create a consumer extensible interface. Following suggestion of @SimonSchick 2017-12-17 16:51:20 -03:00
rafaelsouzaf
3fe936dace Remove old, and not more useful, comments in test files. 2017-12-16 22:32:23 -03:00
rafaelsouzaf
b923c71fdc Replace "interface ServerMethod" with "type ServerMethod". Suggestion of @SimonSchick 2017-12-16 22:30:30 -03:00
rafaelsouzaf
244e1eea17 Add more specific types in ReturnValueTypes used in Lifecycle.Method(). 2017-12-16 22:28:07 -03:00
rafaelsouzaf
3e29b6e832 Move v17 definitions and tests to "types/hapi" root folder and delete v17 temp folder. 2017-12-13 22:32:28 -03:00
rafaelsouzaf
39d8d03a0f Move v16 types to ./v16 folder. 2017-12-13 22:27:07 -03:00
rafaelsouzaf
51e0b2b92b Add references to test files in "tsconfig.json". Delete "hapi-test.ts" 2017-12-11 19:46:25 -03:00
rsouza
f7facb5846 Unnecessarily references, which is already referenced in the type definition. 2017-12-11 18:10:12 -03:00
rsouza
e02a3fa4da Rename to hapi-tests.ts file. 2017-12-11 18:05:29 -03:00
rsouza
4162d09347 Update author name. 2017-12-11 17:21:40 -03:00
rsouza
1811eadb30 Update author name. 2017-12-11 17:07:57 -03:00
rsouza
a1c8fc8f93 Add RouteOptions test file with complete available options. 2017-12-11 16:18:57 -03:00
rsouza
d780053e7f Following best practices of Function Overloading: https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html 2017-12-11 15:06:56 -03:00
rafaelsouzaf
6a92487939 Add more options in "server-options.ts" test file. 2017-12-10 18:50:21 -03:00
rafaelsouzaf
cb280b5ccf Add type object to compression property. It is not only boolean. 2017-12-10 18:49:38 -03:00
rafaelsouzaf
9f0b8755af Add "server-options.ts" test file containing all possible options. 2017-12-10 18:20:19 -03:00
rafaelsouzaf
1a5f4f5894 Replace all "function" with arrow function "() =>". 2017-12-10 17:36:53 -03:00
rafaelsouzaf
3d6b18467e Remove asserts. It's not necessary here. 2017-12-10 17:08:40 -03:00
rafaelsouzaf
6a11db62bd Delete comments. 2017-12-10 17:08:15 -03:00
rafaelsouzaf
b1ca20cc48 Add more tests. 2017-12-09 21:29:43 -03:00
rafaelsouzaf
1b597e080a More fix based in test cases. 2017-12-09 21:26:13 -03:00
rafaelsouzaf
0e389ba4e7 Add new type ServerCache in index. 2017-12-09 20:25:57 -03:00
rafaelsouzaf
d91c350ad5 Add more new test files, mainly Server test files. 2017-12-09 20:25:18 -03:00
rafaelsouzaf
b65a79ab8b Many fix discovered with the tests cases. 2017-12-09 19:55:35 -03:00
rafaelsouzaf
a476fcedc1 Many fix discovered with the tests. 2017-12-09 18:46:52 -03:00
rafaelsouzaf
4d97af115e Fix mime property. It must be "any" like v16. 2017-12-09 17:36:15 -03:00
rafaelsouzaf
6e56e7d014 Fix decorate() param. It must support the "toolkit" option. 2017-12-09 17:34:00 -03:00
rafaelsouzaf
2cbd2d48e8 Add more test files. 2017-12-09 16:41:54 -03:00
rafaelsouzaf
6fd4625f82 Add more tests files. 2017-12-09 12:03:06 -03:00
rafaelsouzaf
b453000bc5 Going back with Dictionary. It didn't work as expected :-/ 2017-12-09 12:00:10 -03:00