mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Ensure boom.BoomError can be cast to Error (#14075)
This commit is contained in:
committed by
Mohamed Hegazy
parent
403527dc84
commit
e22cae7de6
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -16,6 +16,7 @@ declare namespace Boom {
|
||||
isServer: boolean;
|
||||
message: string;
|
||||
output: Output;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Output {
|
||||
|
||||
Reference in New Issue
Block a user