UNPKG
@noaignite/centra-types
Version:
latest (3.1.2)
3.1.2
3.1.1
3.1.0
3.0.0
2.0.0
1.3.0
1.2.0
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-alpha.6
1.0.0-alpha.5
1.0.0-alpha.4
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.1
1.0.0-alpha.0
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
Typescript definitions for centra apis
github.com/noaignite/accelerator
noaignite/accelerator
@noaignite/centra-types
/
src
/
models
/
Response.ts
13 lines
(9 loc)
•
252 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
type
SuccessResponse
<T> = T & {
token
?:
string
|
null
}
export
type
ErrorResponse
= {
token
?:
string
|
null
errors
:
Errors
}
export
type
Errors
=
Record
<
PropertyKey
,
unknown
>
export
type
Response
<T> =
SuccessResponse
<T> |
ErrorResponse