chore: Upgrade flow (#1854)

* wip: upgrade flow

* chore: More sealed props improvements

* Final fixes
This commit is contained in:
Tom Moor
2021-01-29 21:36:09 -08:00
committed by GitHub
parent ce2b246e60
commit 32f0589190
38 changed files with 191 additions and 96 deletions

View File

@@ -11,7 +11,7 @@ export type LocationWithState = Location & {
},
};
export type Toast = {
export type Toast = {|
id: string,
createdAt: string,
message: string,
@@ -22,7 +22,7 @@ export type Toast = {
text: string,
onClick: () => void,
},
};
|};
export type FetchOptions = {
prefetch?: boolean,
@@ -31,12 +31,12 @@ export type FetchOptions = {
force?: boolean,
};
export type NavigationNode = {
export type NavigationNode = {|
id: string,
title: string,
url: string,
children: NavigationNode[],
};
|};
// Pagination response in an API call
export type Pagination = {
@@ -46,12 +46,12 @@ export type Pagination = {
};
// Pagination request params
export type PaginationParams = {
export type PaginationParams = {|
limit?: number,
offset?: number,
sort?: string,
direction?: "ASC" | "DESC",
};
|};
export type SearchResult = {
ranking: number,