mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Refactor: switch data fetching from server side to client
This commit is contained in:
14
src/services/BreweryPost/types/BreweryPostMapQueryResult.ts
Normal file
14
src/services/BreweryPost/types/BreweryPostMapQueryResult.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const BreweryPostMapQueryResult = z.object({
|
||||
location: z.object({
|
||||
coordinates: z.array(z.number()),
|
||||
city: z.string(),
|
||||
country: z.string().nullable(),
|
||||
stateOrProvince: z.string().nullable(),
|
||||
}),
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
});
|
||||
|
||||
export default BreweryPostMapQueryResult;
|
||||
Reference in New Issue
Block a user