mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
boom: add missing internal() alias (#16696)
This commit is contained in:
committed by
Mohamed Hegazy
parent
cae1ec5491
commit
ea7b301f5d
@@ -33,6 +33,7 @@ Boom.tooManyRequests('message', {some: 'data'});
|
||||
Boom.illegal('message', {some: 'data'});
|
||||
|
||||
Boom.badImplementation('message', {some: 'data'});
|
||||
Boom.internal('message', {some: 'data'});
|
||||
Boom.notImplemented('message', {some: 'data'});
|
||||
Boom.badGateway('message', {some: 'data'});
|
||||
Boom.serverUnavailable('message', {some: 'data'});
|
||||
|
||||
9
types/boom/index.d.ts
vendored
9
types/boom/index.d.ts
vendored
@@ -271,6 +271,15 @@ declare namespace Boom {
|
||||
*/
|
||||
export function badImplementation(message?: string, data?: any): BoomError;
|
||||
|
||||
/**
|
||||
* Returns a 500 Internal Server Error error
|
||||
* Only 500 errors will hide your message from the end user. Your message is recorded in the server log.
|
||||
* @param message optional message.
|
||||
* @param data optional additional error data.
|
||||
* @see {@link https://github.com/hapijs/boom#boombadimplementationmessage-data---alias-internal}
|
||||
*/
|
||||
export function internal(message?: string, data?: any): BoomError;
|
||||
|
||||
/**
|
||||
* Returns a 501 Not Implemented error with your error message to the user
|
||||
* @param message optional message.
|
||||
|
||||
Reference in New Issue
Block a user