From dd8d6a0b7d49294ee467a675807605c17f7cf583 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 12 Oct 2026 21:14:28 +0000 Subject: [PATCH] chore(knip): drop the exports nothing outside their module reads --- client/src/components/Planner/bookingFormModel.ts | 2 +- client/src/pages/tripPlanner/placeUndo.ts | 2 +- client/src/store/collectionUnion.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 & * 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[]): string | undefined { +function bookingDate(saved: SavedBooking, days: Pick[]): 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 & { name: string } { +function placeRestorePayload(place: Place): Partial & { 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. */