Type: defineTVSeries(input?: TVSeries)
Describes a TV show series.
stringNodeRelations<Person | string>NodeRelations<Person | string>NodeRelations<Person | Organization | string>numbernumberTVSeries${canonicalHost}#tv-seriesdefineTVSeries({
name: 'Breaking Bad',
})
defineTVSeries({
name: 'Breaking Bad',
description: 'A chemistry teacher diagnosed with cancer turns to manufacturing meth',
url: 'https://example.com/shows/breaking-bad',
image: 'https://example.com/shows/breaking-bad-poster.jpg',
numberOfSeasons: 5,
numberOfEpisodes: 62,
genre: ['Crime', 'Drama', 'Thriller'],
actor: [
{ name: 'Bryan Cranston' },
{ name: 'Aaron Paul' },
],
director: [
{ name: 'Vince Gilligan' },
],
creator: {
name: 'Vince Gilligan',
},
productionCompany: {
name: 'AMC Studios',
},
datePublished: new Date(2008, 0, 20),
aggregateRating: {
ratingValue: 9.5,
ratingCount: 1500000,
},
})
export interface TVSeriesSimple extends Thing {
name: string
description?: string
url?: string
image?: NodeRelations<string | ImageObject>
actor?: NodeRelations<Person | string>
director?: NodeRelations<Person | string>
creator?: NodeRelations<Person | Organization | string>
numberOfSeasons?: number
numberOfEpisodes?: number
containsSeason?: NodeRelations<any>
episode?: NodeRelations<any>
genre?: string | string[]
datePublished?: ResolvableDate
startDate?: ResolvableDate
endDate?: ResolvableDate
productionCompany?: NodeRelation<Organization | string>
aggregateRating?: NodeRelation<AggregateRating>
countryOfOrigin?: string
trailer?: NodeRelation<VideoObject | string>
contentRating?: string
}