test: type the follow-up steps and the Atlas visit filter as they are used

The editor follow-up always hands the planner an afterSave, and its type now
says so, so the hook test calls it under strictNullChecks. The travel stats
test reads a country without a status as visited, as the standing helper
does for the hand-marked list. The client baseline holds the one non-null
assertion the count missed.
This commit is contained in:
Maurice
2026-10-29 15:36:37 +01:00
parent 2a51a1a842
commit 97455da6ca
3 changed files with 3 additions and 3 deletions
@@ -72,7 +72,7 @@ export function useBookingFollowUp({
/** Whether a try in this session already stored the booking, so the form holds a retry. */
holdsSaved: () => stored.current !== null,
/** What the save hands the planner, for a booking whose files are described by `description`. */
steps: (description: string): BookingSaveSteps => ({
steps: (description: string): BookingSaveSteps & Required<Pick<BookingSaveSteps, 'afterSave'>> => ({
saved: stored.current ?? undefined,
afterSave: (saved) => afterSave(saved, description),
}),