mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
chore(knip): drop the exports nothing outside their module reads
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user