newsarticle.d.ts 884 B

123456789101112131415161718192021
  1. /// <reference types="react" />
  2. import { JsonLdProps } from './jsonld';
  3. import { ArticleAuthor } from '../types';
  4. export interface NewsArticleJsonLdProps extends JsonLdProps {
  5. url: string;
  6. title: string;
  7. images: ReadonlyArray<string>;
  8. section: string;
  9. keywords: string;
  10. dateCreated: string;
  11. datePublished: string;
  12. dateModified?: string;
  13. authorName: string | string[] | ArticleAuthor | ArticleAuthor[];
  14. description: string;
  15. body: string;
  16. publisherName: string;
  17. publisherLogo: string;
  18. isAccessibleForFree?: boolean;
  19. }
  20. declare function NewsArticleJsonLd({ type, keyOverride, url, title, images, section, dateCreated, datePublished, dateModified, authorName, authorType, publisherName, publisherLogo, body, isAccessibleForFree, ...rest }: NewsArticleJsonLdProps): JSX.Element;
  21. export default NewsArticleJsonLd;