Commit Graph

9 Commits

Author SHA1 Message Date
Jinesh Shah
01b1d90bc2 Added Boomify as per the new API [types/boom/index.d.ts] (#18363)
* Update index.d.ts

* Update index.d.ts

* added boomify test
2017-07-31 14:11:28 -07:00
Niklas Wulf
046b7d5ff9 [Boom, Hapi] Add default generic type to all error creation functions (#17048)
* [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
2017-06-08 06:33:24 -07:00
Alexander James Phillips
7ea548f1fa [Boom] Add data type to BoomError #16956 (#17022)
* [Boom] Add data type to BoomError #16956

* [Boom] Update TypeScript version to 2.3 in packages that import Boom
2017-06-07 09:37:40 -07:00
Christian
ea7b301f5d boom: add missing internal() alias (#16696) 2017-06-01 09:52:13 -07:00
Alexander James Phillips
4340843152 Boom, add test and allow for payload to be extended (#15961)
* Boom, add test and allow for payload to be extended

* Do not use I prefix for interface names
2017-04-21 07:32:06 -07:00
Alexander James Phillips
74939cd275 Update type of header object values 2017-04-04 14:17:17 +01:00
Alexander James Phillips
d245364d9b Update to boom v4.3
BoomError subclasses Error
Include typing of BoomError.output.headers and .payload
Add missing error types
Better typing of 401 unauthorized error
Add more tests
Add content from docs and links back to docs
2017-04-03 19:52:44 +01:00
Alexander James Phillips
1e1de92c55 Move current boom definitions to v3 2017-04-03 19:41:14 +01:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00