@tomei/product
Version:
NestJS package for product module
14 lines (9 loc) • 373 B
text/typescript
import { ProductModel } from '../entities/product.entity';
export interface IProductRepository {
create(data: ProductModel | any, options?: any): Promise<ProductModel>;
findAll(options: any): Promise<ProductModel[]>;
findAllWithPagination(
options: any,
): Promise<{ count: number; rows: ProductModel[] }>;
findOne(options: any): Promise<ProductModel>;
}