mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 15:36:33 +00:00
chore: journey type fields for the test typecheck, prettier on the new shared schemas
This commit is contained in:
@@ -169,9 +169,11 @@ export type ActiveTripResponse = z.infer<typeof activeTripResponseSchema>;
|
||||
* along for the card; title and date matching stays on the client.
|
||||
*/
|
||||
export const tripSearchResponseSchema = z.object({
|
||||
matches: z.array(z.object({
|
||||
trip_id: z.number(),
|
||||
places: z.array(z.string()),
|
||||
})),
|
||||
matches: z.array(
|
||||
z.object({
|
||||
trip_id: z.number(),
|
||||
places: z.array(z.string()),
|
||||
}),
|
||||
),
|
||||
});
|
||||
export type TripSearchResponse = z.infer<typeof tripSearchResponseSchema>;
|
||||
|
||||
Reference in New Issue
Block a user