Frontend Type Generation & Sync
Keeping data types synced between the backend and frontend is a high priority. Follow this logic exactly:
- Change Directory: Always start by moving into the
./frontend/directory. - Execute Generation: Run the npm script:
npm run generate:typesNote: This script automatically handles checking if the backend is running and choosing the appropriate generation method. - Verification: Confirm that the generated type files have been updated in
./frontend/src/types/types.generated.ts. - Application: Ensure that the new types are being used in the frontend codebase to maintain type safety and reduce bugs.
- Constraints:
- Do NOT modify
./frontend/src/types/types.generated.tsfile directly.
- Do NOT modify
Converted and distributed by TomeVault — claim your Tome and manage your conversions.