File tree Expand file tree Collapse file tree 3 files changed +28
-13
lines changed Expand file tree Collapse file tree 3 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1
- import { OutgoingHttpHeaders } from "http" ;
1
+ export interface OutgoingHttpHeaders {
2
+ [ header : string ] : number | string | string [ ] | undefined ;
3
+ }
2
4
3
- export interface EnvelopedResponse < T > {
5
+ export default interface EnvelopedResponse < T > {
4
6
readonly status : number ;
5
7
readonly body : T ;
6
8
readonly headers : OutgoingHttpHeaders ;
7
- }
9
+ }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export interface PaginationMetadata {
7
7
readonly before : string | null ;
8
8
readonly totalCount : number ;
9
9
}
10
- export interface PaginatedResponse < I extends Item > {
10
+ export default interface PaginatedResponse < I extends Item > {
11
11
readonly data : I [ ] ;
12
12
readonly pagination : PaginationMetadata ;
13
13
}
Original file line number Diff line number Diff line change 1
- import Cursor from "./Cursor" ;
2
- import CursorResult from "./CursorResult" ;
3
- import Filter from "./Filter" ;
4
- import Item from "./Item" ;
5
- import Options from "./Options" ;
6
- import Pagination from "./Pagination" ;
7
- import Sort from "./Sort" ;
8
- import SortOrder from "./SortOrder" ;
1
+ import Cursor from './Cursor' ;
2
+ import CursorResult from './CursorResult' ;
3
+ import {
4
+ default as EnvelopedResponse ,
5
+ OutgoingHttpHeaders ,
6
+ } from './EnvelopedResponse' ;
7
+
8
+ import Filter from './Filter' ;
9
+ import Item from './Item' ;
10
+ import Options from './Options' ;
11
+ import {
12
+ default as PaginatedResponse ,
13
+ PaginationMetadata ,
14
+ } from './PaginatedResponse' ;
15
+ import Pagination from './Pagination' ;
16
+ import Sort from './Sort' ;
17
+ import SortOrder from './SortOrder' ;
9
18
10
19
export {
11
20
Cursor ,
12
21
CursorResult ,
22
+ EnvelopedResponse ,
13
23
Filter ,
14
24
Item ,
15
25
Options ,
26
+ OutgoingHttpHeaders ,
16
27
Pagination ,
28
+ PaginationMetadata ,
29
+ PaginatedResponse ,
17
30
Sort ,
18
- SortOrder
31
+ SortOrder ,
19
32
} ;
You can’t perform that action at this time.
0 commit comments