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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user