mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Refactored api services into sep files. Client fix
Fixed hydration errors in beers/[id] by implementing timeDistanceState
This commit is contained in:
27
services/BeerPost/schema/BeerPostQueryResult.ts
Normal file
27
services/BeerPost/schema/BeerPostQueryResult.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export default interface BeerPostQueryResult {
|
||||
id: string;
|
||||
name: string;
|
||||
brewery: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
description: string;
|
||||
beerImages: {
|
||||
url: string;
|
||||
id: string;
|
||||
alt: string;
|
||||
}[];
|
||||
|
||||
ibu: number;
|
||||
abv: number;
|
||||
type: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
postedBy: {
|
||||
id: string;
|
||||
username: string;
|
||||
};
|
||||
|
||||
createdAt: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user