UNPKG
easy-express-cwa
Version:
latest (1.2.10)
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.1.2
CLI tool to setup a common Express.js backend developed by codewithashim
easy-express-cwa
/
server
/
src
/
interfaces
/
common.ts
18 lines
(14 loc)
•
295 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
{
IGenericErrorMessage
}
from
'./error'
;
export
type
IGenericResponse
<T> = {
meta
: {
page
:
number
;
limit
:
number
;
total
:
number
; };
data
: T; };
export
type
IGenericErrorResponse
= {
statusCode
:
number
;
message
:
string
;
errorMessages
:
IGenericErrorMessage
[]; };