recipe.d.ts 886 B

123456789101112131415161718192021222324
  1. /// <reference types="react" />
  2. import { JsonLdProps } from './jsonld';
  3. import type { Instruction, AggregateRating, Video } from 'src/types';
  4. export interface RecipeJsonLdProps extends JsonLdProps {
  5. name: string;
  6. description: string;
  7. authorName: string | string[];
  8. ingredients: string[];
  9. instructions: Instruction[];
  10. images?: string[];
  11. datePublished?: string;
  12. prepTime?: string;
  13. cookTime?: string;
  14. totalTime?: string;
  15. keywords?: string;
  16. yields?: string;
  17. category?: string;
  18. cuisine?: string;
  19. calories?: number;
  20. aggregateRating?: AggregateRating;
  21. video?: Video;
  22. }
  23. declare function RecipeJsonLd({ type, keyOverride, authorName, images, yields, category, cuisine, calories, aggregateRating, video, ingredients, instructions, ...rest }: RecipeJsonLdProps): JSX.Element;
  24. export default RecipeJsonLd;