Massive/home-page-params.ts
Brandon Presley 386a9a7bb2 Pass whole updated set instead of just its id
Since we already have the whole updated set,
might as well pass it around instead of
re-fetching it.
2023-08-29 11:25:05 +12:00

24 lines
322 B
TypeScript

import GymSet from "./gym-set";
export type HomePageParams = {
Sets: {
search?: string;
/**
* Update the specified set
*/
refresh?: GymSet;
/**
* Reload the list with limit = 0
*/
reset?: number;
};
EditSet: {
set: GymSet;
};
EditSets: {
ids: number[];
};
};