the-tip-top-frontend/utils
soufiane 40cdd2777c fix: replace 'as const' with explicit type annotation for NAV_ITEMS
Remove 'as const' assertion from NAV_ITEMS and add explicit type annotation with Array<'CLIENT' | 'EMPLOYEE' | 'ADMIN'> for roles property. This allows TypeScript to properly type-check the includes() method in Navbar component without requiring type assertions.

Also revert the 'as any' workaround in Navbar.tsx since the proper typing is now in place.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 01:43:34 +01:00
..
constants.ts fix: replace 'as const' with explicit type annotation for NAV_ITEMS 2025-11-18 01:43:34 +01:00
helpers.ts dev 2025-11-17 23:38:02 +01:00