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

This commit is contained in:
Maurice
2026-10-12 21:14:28 +00:00
parent af3dfd0bad
commit dd8d6a0b7d
3 changed files with 3 additions and 3 deletions
@@ -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;
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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. */