import { DaffProductServiceInterface } from '@daffodil/product/driver'
An interface for any Product service drivers.
interface DaffProductServiceInterface<T extends DaffProduct = DaffProduct> {
getAll(): any
get(productId: T["id"]): any
getByUrl(url: string): any
}
anyGet all products.
anyGet a product by Id.
| Parameter | productId: T["id"] |
|---|---|
| Description | A string of the product ID. |
anyGet a product by URL.
| Parameter | url: string |
|---|---|
| Description | A string of the product URL. See |