zyachel 18ca98fd4a refactor: make components more modular
would help in implementing name route

also did some stylistic changes
2023-04-15 20:58:09 +05:30

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'];