forked from Aaron/Kino-Website
add TypeScript interfaces for cart and cart items #5
Reference in New Issue
Block a user
Delete Branch "feature/cart-interfaces"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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