setVideo.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import type { Video } from 'src/types';
  2. export declare function setVideo(video?: Video, setContext?: boolean): {
  3. thumbnailUrl: string[];
  4. hasPart: {
  5. '@type': string;
  6. name: string;
  7. startOffset: number;
  8. url: string;
  9. } | {
  10. '@type': string;
  11. name: string;
  12. startOffset: number;
  13. url: string;
  14. }[] | undefined;
  15. interactionStatistic: {
  16. '@type': string;
  17. interactionType: string;
  18. userInteractionCount: number;
  19. } | undefined;
  20. publication: {
  21. '@type': string;
  22. name?: string | undefined;
  23. isLiveBroadcast?: boolean | undefined;
  24. startDate?: string | undefined;
  25. endDate?: string | undefined;
  26. } | {
  27. '@type': string;
  28. name?: string | undefined;
  29. isLiveBroadcast?: boolean | undefined;
  30. startDate?: string | undefined;
  31. endDate?: string | undefined;
  32. }[] | undefined;
  33. '@context'?: string | undefined;
  34. '@type': string;
  35. name: string;
  36. description: string;
  37. uploadDate: string;
  38. contentUrl?: string | undefined;
  39. duration?: string | undefined;
  40. embedUrl?: string | undefined;
  41. expires?: string | undefined;
  42. regionsAllowed?: string | string[] | undefined;
  43. } | undefined;