Ensure boom.BoomError can be cast to Error (#14075)

This commit is contained in:
Garth Kidd
2017-01-17 16:21:42 -08:00
committed by Mohamed Hegazy
parent 403527dc84
commit e22cae7de6
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -5,3 +5,4 @@ import Boom = require('boom');
Boom.create(500, 'Internal server error', { timestamp: Date.now() });
Boom.wrap(new Error('test'), 400);
Boom.badRequest('Invalid cookies');
Boom.unauthorized() as Error;
+1
View File
@@ -16,6 +16,7 @@ declare namespace Boom {
isServer: boolean;
message: string;
output: Output;
name: string;
}
export interface Output {