fix(types): resolve all client TypeScript errors (attendance + plan rollback)

- AttendanceAdmin: declare worked_hours_raw on UserTotalData (the hook sets it at runtime; the local interface omitted it)
- usePlanWork.rollbackMutation: type the mutation param as unknown + explicit cast so passing the TanStack mutation result (with the dynamically-stashed _rolled) no longer trips the weak-type check
tsc -p tsconfig.app.json --noEmit is now clean (0 errors, was 9).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-06 01:20:24 +02:00
parent e845400fca
commit 4a78d31a7f
2 changed files with 14 additions and 7 deletions

View File

@@ -21,6 +21,9 @@ interface UserTotalData {
unpaid_hours: number;
fund: number | null;
worked_hours: number;
// Raw worked hours incl. sub-day remainders (set by computeUserTotals in
// useAttendanceAdmin); used for the Fond "used" calculation below.
worked_hours_raw?: number;
covered: number;
missing: number;
overtime: number;