7 lines
198 B
TypeScript
7 lines
198 B
TypeScript
import type { CartItem } from './entities';
|
|
|
|
/** Port: cart persistence (implemented by infrastructure). */
|
|
export interface CartRepository {
|
|
load(): CartItem[];
|
|
save(items: CartItem[]): void;
|
|
} |