feat: major rewrite
the application is now rewritten in next.js. this commit also adds the ability to see trailers, did you know, more like this, etc. on title page. BREAKING CHANGE: the whole application is rewritten from scratch.
This commit is contained in:
5
src/interfaces/shared/error.ts
Normal file
5
src/interfaces/shared/error.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export type AppError = {
|
||||
message: string;
|
||||
statusCode: number;
|
||||
stack?: any;
|
||||
};
|
25
src/interfaces/shared/title.ts
Normal file
25
src/interfaces/shared/title.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import cleanTitle from '../../utils/cleaners/title';
|
||||
import title from '../../utils/fetchers/title';
|
||||
|
||||
export type AxiosTitleRes = Awaited<ReturnType<typeof 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'];
|
Reference in New Issue
Block a user