chore: Upgrade flow (#1854)
* wip: upgrade flow * chore: More sealed props improvements * Final fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user