setAuthor.d.ts 505 B

123456789101112131415161718
  1. import { ArticleAuthor } from '../../types';
  2. export declare function setAuthor(author?: string | string[] | ArticleAuthor | ArticleAuthor[]): {
  3. '@type': string;
  4. name: string;
  5. url?: undefined;
  6. } | {
  7. '@type': "Person" | "Organization";
  8. name: string;
  9. url: string | undefined;
  10. } | ({
  11. '@type': string;
  12. name: string;
  13. url?: undefined;
  14. } | {
  15. '@type': "Person" | "Organization";
  16. name: string;
  17. url: string | undefined;
  18. } | undefined)[] | undefined;