-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fca3f2
commit cd14ea1
Showing
3 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { OutgoingHttpHeaders } from "http"; | ||
export interface OutgoingHttpHeaders { | ||
[header: string]: number | string | string[] | undefined; | ||
} | ||
|
||
export interface EnvelopedResponse<T> { | ||
export default interface EnvelopedResponse<T> { | ||
readonly status: number; | ||
readonly body: T; | ||
readonly headers: OutgoingHttpHeaders; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
import Cursor from "./Cursor"; | ||
import CursorResult from "./CursorResult"; | ||
import Filter from "./Filter"; | ||
import Item from "./Item"; | ||
import Options from "./Options"; | ||
import Pagination from "./Pagination"; | ||
import Sort from "./Sort"; | ||
import SortOrder from "./SortOrder"; | ||
import Cursor from './Cursor'; | ||
import CursorResult from './CursorResult'; | ||
import { | ||
default as EnvelopedResponse, | ||
OutgoingHttpHeaders, | ||
} from './EnvelopedResponse'; | ||
|
||
import Filter from './Filter'; | ||
import Item from './Item'; | ||
import Options from './Options'; | ||
import { | ||
default as PaginatedResponse, | ||
PaginationMetadata, | ||
} from './PaginatedResponse'; | ||
import Pagination from './Pagination'; | ||
import Sort from './Sort'; | ||
import SortOrder from './SortOrder'; | ||
|
||
export { | ||
Cursor, | ||
CursorResult, | ||
EnvelopedResponse, | ||
Filter, | ||
Item, | ||
Options, | ||
OutgoingHttpHeaders, | ||
Pagination, | ||
PaginationMetadata, | ||
PaginatedResponse, | ||
Sort, | ||
SortOrder | ||
SortOrder, | ||
}; |