product.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /// <reference types="react" />
  2. import { JsonLdProps } from './jsonld';
  3. import type { Review, AggregateRating, AggregateOffer, Offers } from 'src/types';
  4. export interface ProductJsonLdProps extends JsonLdProps {
  5. productName: string;
  6. images?: string[];
  7. description?: string;
  8. brand?: string;
  9. reviews?: Review | Review[];
  10. aggregateRating?: AggregateRating;
  11. offers?: Offers | Offers[];
  12. aggregateOffer?: AggregateOffer;
  13. sku?: string;
  14. gtin8?: string;
  15. gtin13?: string;
  16. gtin14?: string;
  17. mpn?: string;
  18. color?: string;
  19. manufacturerName?: string;
  20. manufacturerLogo?: string;
  21. material?: string;
  22. slogan?: string;
  23. disambiguatingDescription?: string;
  24. productionDate?: string;
  25. purchaseDate?: string;
  26. releaseDate?: string;
  27. award?: string;
  28. }
  29. declare function ProductJsonLd({ type, keyOverride, images, brand, reviews, aggregateRating, manufacturerLogo, manufacturerName, offers, aggregateOffer, productName, ...rest }: ProductJsonLdProps): JSX.Element;
  30. export default ProductJsonLd;