@mugan86/ng-shop-ui
Version:
Librería para crear los componentes de una tienda Online
26 lines (25 loc) • 677 B
TypeScript
import { IRatingItem } from './rating-item.interface';
export interface IProduct {
/** Identify ID */
id: string;
/** Element slug */
slug?: string;
/** Name product */
name: string;
/** Card product image */
img: string;
/** Stock total value */
stock: number;
/** Discount percentage */
discount?: number;
/** Real price */
price: number;
/** New price if discount value exist to apply respect real price */
priceDiscount?: number;
/** Product description with more details */
description: string;
/** Quantity select */
qty?: number;
/** Produc review rating */
rating?: IRatingItem;
}