Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

chore(knip): drop the exports nothing outside their module reads

Mauricedd8d6a0b7d49
diff --git a/client/src/components/Planner/bookingFormModel.ts b/client/src/components/Planner/bookingFormModel.ts
index 6e88e0931..34f571d1e 100644
--- a/client/src/components/Planner/bookingFormModel.ts
+++ b/client/src/components/Planner/bookingFormModel.ts
@@ -79,7 +79,7 @@ type SavedBooking = Pick<Reservation, 'id'> &
* The calendar day a saved booking falls on: its own date, else a hotel's check-in
* day, else the day it sits on. Nothing for a booking without any of them.
*/
-export function bookingDate(saved: SavedBooking, days: Pick<Day, 'id' | 'date'>[]): string | undefined {
+function bookingDate(saved: SavedBooking, days: Pick<Day, 'id' | 'date'>[]): string | undefined {
const own = (saved.reservation_time || '').slice(0, 10);
if (/^\d{4}-\d{2}-\d{2}$/.test(own)) return own;
const dayId = saved.accommodation_start_day_id ?? saved.day_id;
diff --git a/client/src/pages/tripPlanner/placeUndo.ts b/client/src/pages/tripPlanner/placeUndo.ts
index 418ce859d..e645ebe1f 100644
--- a/client/src/pages/tripPlanner/placeUndo.ts
+++ b/client/src/pages/tripPlanner/placeUndo.ts
@@ -44,7 +44,7 @@ function isUploadedImage(url: string | null | undefined): boolean {
}
/** Every field the place was created with, for writing it again. */
-export function placeRestorePayload(place: Place): Partial<Place> & { name: string } {
+function placeRestorePayload(place: Place): Partial<Place> & { name: string } {
return {
name: place.name,
description: place.description,
diff --git a/client/src/store/collectionUnion.ts b/client/src/store/collectionUnion.ts
index f6469df85..e380f7703 100644
--- a/client/src/store/collectionUnion.ts
+++ b/client/src/store/collectionUnion.ts
@@ -4,7 +4,7 @@ import { collectionsApi } from '../api/collections';
/** Detail requests fired at once while building the union. A user with many
* lists would otherwise open "All saved" (or the trip's saved-places picker)
* with one full list read per list, all in parallel (#2559). */
-export const DETAIL_BATCH = 4;
+const DETAIL_BATCH = 4;
/** Union of every list's places, in list order, without duplicates. A list
* that cannot be read is skipped. */