Search improvements

This commit is contained in:
Jori Lallo
2017-12-03 16:50:50 -08:00
parent cd2cbf1c15
commit 5df2983ef6
6 changed files with 86 additions and 12 deletions

View File

@@ -39,12 +39,21 @@ export type Document = {
views: number,
};
// Pagination response in an API call
export type Pagination = {
limit: number,
nextPath: string,
offset: number,
};
// Pagination request params
export type PaginationParams = {
limit?: number,
offset?: number,
sort?: string,
direction?: 'ASC' | 'DESC',
};
export type ApiKey = {
id: string,
name: ?string,