* 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
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
* [Boom] Add default generic type to all error creation functions
* [Boom] Change default generic Data type to any instead of null
* [Boom] Add tests for error creation without custom data
* [Boom, Hapi] Move tests for passing Boom errors to Hapi continuation functions into hapi package
* [boom] add wrap and unauthorized return BoomError with data as null
* [Hapi] Fix input and response validation function signatures
Fixes#16750
* [Hapi] Allow custom validation options in route input and response
* [Hapi] Adjust validation contexts to match Hapi version 16.1.1
* [Hapi] Adjust test/route/validate.ts to match newest changes
* [Hapi] Add custom options to response validation test
* [Hapi] Update TypeScript version to 2.3 in packages that import Hapi
* [Hapi] Clarify documentation on validation function value, allow null