mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
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:
@@ -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),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user