Choose a repository
Open a synthetic TypeScript project to review code with file-grounded assistance.
Open a synthetic TypeScript project to review code with file-grounded assistance.
1import type { CartItem } from '../types/cart'23export function calculateTotal(items: CartItem[]) {4return items.reduce((total, item) => {5return total + item.price6}, 0)7}
1import type { CartItem } from '../types/cart'23export function calculateTotal(items: CartItem[]) {4return items.reduce((total, item) => {5return total + item.price6}, 0)7}
1import type { CartItem } from '../types/cart'23export function calculateTotal(items: CartItem[]) {4return items.reduce((total, item) => {5return total + item.price6}, 0)7}
1import type { CartItem } from '../types/cart'23export function calculateTotal(items: CartItem[]) {4return items.reduce((total, item) => {5return total + item.price6}, 0)7}
1import type { CartItem } from '../types/cart'23export function calculateTotal(items: CartItem[]) {4return items.reduce((total, item) => {5return total + item.price6}, 0)7}
Open a synthetic TypeScript project to review code with file-grounded assistance.
1import type { CartItem } from '../types/cart'23export function calculateTotal(items: CartItem[]) {4return items.reduce((total, item) => {5return total + item.price6}, 0)7}