hapijs / boom

HTTP-friendly error objects
Other
2.94k stars 192 forks source link

Make isBoom type definition laxer #275

Closed nulltoken closed 3 years ago

nulltoken commented 3 years ago

Especially useful in hapijs context, where request.response can be a Boom object. This change allows the TypeScript code to leverage isBoom() to check if request.response is a Boom object or not, without any noisy typecast.

nulltoken commented 3 years ago

@cjihrig, @devinivy, @nargonath, @lloydbenson, @nlf, @geek :wave: kind bump?