Untitled
unknown
plain_text
17 days ago
1.2 kB
17
Indexable
// src/exampleProducts.ts import { Product } from './models/Product'; export const exampleProducts: Product[] = [ { id: '1', name: 'Laptop X', category: 'electronics', price: 1200, rating: 4.5, }, { id: '2', name: 'Smartphone Y', category: 'electronics', price: 800, rating: 4.7, }, { id: '3', name: 'Gaming Console Z', category: 'electronics', price: 500, rating: 4.2, }, { id: '4', name: 'Headphones A', category: 'electronics', price: 150, rating: 4.8, }, { id: '5', name: 'Smartwatch B', category: 'electronics', price: 200, rating: 4.3, }, { id: '6', name: 'Tablet C', category: 'electronics', price: 300, rating: 4.1, }, { id: '7', name: 'Book D', category: 'books', price: 20, rating: 4.9, }, { id: '8', name: 'Cookbook E', category: 'books', price: 30, rating: 4.6, }, { id: '9', name: 'Novel F', category: 'books', price: 15, rating: 4.4, }, { id: '10', name: 'Biography G', category: 'books', price: 25, rating: 4.2, }, ];
Editor is loading...
Leave a Comment