From 5ecf3001afcd595a3413bd5e3bc193d9d32003e2 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 17 Nov 2026 08:57:18 +0100 Subject: [PATCH] fix(places): keep the hooks' helper types to their files knip counts an exported type nothing imports; the tabs' row type and the hours' field type are only used where they are declared. --- client/src/components/Planner/usePlaceHours.ts | 2 -- client/src/components/Planner/usePlaceTextTabs.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/components/Planner/usePlaceHours.ts b/client/src/components/Planner/usePlaceHours.ts index 430f807e9..3f5af5092 100644 --- a/client/src/components/Planner/usePlaceHours.ts +++ b/client/src/components/Planner/usePlaceHours.ts @@ -82,5 +82,3 @@ export function usePlaceHours({ openingHours, onChange, suggestedHours }: PlaceH takeOver, }; } - -export type PlaceHoursField = ReturnType; diff --git a/client/src/components/Planner/usePlaceTextTabs.ts b/client/src/components/Planner/usePlaceTextTabs.ts index f9936ae04..68f25aba1 100644 --- a/client/src/components/Planner/usePlaceTextTabs.ts +++ b/client/src/components/Planner/usePlaceTextTabs.ts @@ -4,7 +4,7 @@ type Translate = (key: string, params?: Record) => stri export type PlaceTextField = 'description' | 'notes' | 'assignment_notes'; -export interface PlaceTextTab { +interface PlaceTextTab { field: PlaceTextField; /** The tab's own short name. */ label: string;