18ca98fd4a
would help in implementing name route also did some stylistic changes
24 lines
561 B
TypeScript
24 lines
561 B
TypeScript
import cleanTitle from 'src/utils/cleaners/title';
|
|
import title from 'src/utils/fetchers/title';
|
|
|
|
// for full title
|
|
type Title = ReturnType<typeof cleanTitle>;
|
|
export type { Title as default };
|
|
|
|
export type Basic = Title['basic'];
|
|
|
|
export type Media = Title['media'];
|
|
|
|
export type Cast = Title['cast'];
|
|
|
|
export type DidYouKnow = Title['didYouKnow'];
|
|
|
|
export type Info = Pick<
|
|
Title,
|
|
'meta' | 'accolades' | 'keywords' | 'details' | 'boxOffice' | 'technicalSpecs'
|
|
>;
|
|
|
|
export type Reviews = Title['reviews'];
|
|
|
|
export type MoreLikeThis = Title['moreLikeThis'];
|