@tomei/product
Version:
NestJS package for product module
11 lines (10 loc) • 389 B
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>;
}