UNPKG
error-response-handler
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
Comprehensive error handling and response formatting for Node.js applications
error-response-handler
/
dist
/
responseHandler.d.ts
14 lines
(13 loc)
•
295 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
StatusInput
}
from
"./types"
;
export
declare
const
successResponse
: <T>
(
options
?: { message?:
string
; data?: T; statusCode?: StatusInput; }
) =>
{
success
:
true
;
message
:
string
;
data
?: T;
statusCode
:
number
;
statusText
:
string
;
timestamp
:
string
; };