add TypeScript interfaces for cart and cart items #5

Merged
Jannis merged 1 commits from feature/cart-interfaces into dev_jannis 2026-05-06 06:26:23 +00:00

1 Commits

Author SHA1 Message Date
Jannis Heydemann
06606131ef add TypeScript interfaces for cart and cart items
Introduces BaseCartItem, MovieCartItem, SnackCartItem, and the CartItem
discriminated union in bigConstants.ts. Replaces all any-typed cart
references across CartView, CheckoutView, SnacksView, and BookingModal
with the new typed interfaces. Also types users/currentUser with the
existing User interface and removes the unused JSONType import.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 08:25:16 +02:00