article.d.ts 818 B

123456789101112131415161718
  1. /// <reference types="react" />
  2. import { JsonLdProps } from './jsonld';
  3. import { ArticleAuthor } from 'src/types';
  4. export interface ArticleJsonLdProps extends JsonLdProps {
  5. type?: 'Article' | 'BlogPosting' | 'NewsArticle' | 'Blog';
  6. url: string;
  7. title: string;
  8. images: ReadonlyArray<string>;
  9. datePublished: string;
  10. dateModified?: string;
  11. authorName: string | string[] | ArticleAuthor | ArticleAuthor[];
  12. description: string;
  13. publisherName?: string;
  14. publisherLogo?: string;
  15. isAccessibleForFree?: boolean;
  16. }
  17. declare function ArticleJsonLd({ type, keyOverride, url, title, images, datePublished, dateModified, authorName, publisherName, publisherLogo, description, isAccessibleForFree, ...rest }: ArticleJsonLdProps): JSX.Element;
  18. export default ArticleJsonLd;