Skip to content

Commit 5b8519c

Browse files
committed
refactor(types): rename types
1 parent 4600895 commit 5b8519c

28 files changed

+54
-47
lines changed

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dotenv/config';
33
import express, { NextFunction, Request, Response } from 'express';
44
import packageJson from './package.json';
55
import { csfd } from './src';
6-
import { CSFDFilmTypes } from './src/interfaces/global';
6+
import { CSFDFilmTypes } from './src/dto/global';
77

88
type Severity = 'info' | 'warn' | 'error' | 'success';
99

src/interfaces/cinema.interface.ts renamed to src/dto/cinema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CSFDMovieListItem } from './movie.interface';
1+
import { CSFDMovieListItem } from './movie';
22

33
export interface CSFDCinema {
44
id: number;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/interfaces/search.interface.ts renamed to src/dto/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CSFDScreening } from './global';
2-
import { CSFDMovieCreator } from './movie.interface';
2+
import { CSFDMovieCreator } from './movie';
33

44
export interface CSFDSearch {
55
movies: CSFDSearchMovie[];
File renamed without changes.

src/helpers/cinema.helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { HTMLElement } from 'node-html-parser';
2-
import { CSFDColorRating } from '../interfaces/global';
3-
import { Colors } from '../interfaces/user-ratings.interface';
42
import {
53
CSFDCinemaGroupedFilmsByDate,
64
CSFDCinemaMeta,
75
CSFDCinemaMovie
8-
} from './../interfaces/cinema.interface';
6+
} from '../dto/cinema';
7+
import { CSFDColorRating } from '../dto/global';
8+
import { Colors } from '../dto/user-ratings';
99
import { parseColor, parseIdFromUrl } from './global.helper';
1010

1111
export const getCinemaColorRating = (el: HTMLElement): CSFDColorRating => {

src/helpers/creator.helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HTMLElement } from 'node-html-parser';
2-
import { CSFDCreatorScreening } from '../interfaces/creator.interface';
3-
import { CSFDColorRating } from '../interfaces/global';
4-
import { Colors } from '../interfaces/user-ratings.interface';
2+
import { CSFDCreatorScreening } from '../dto/creator';
3+
import { CSFDColorRating } from '../dto/global';
4+
import { Colors } from '../dto/user-ratings';
55
import { addProtocol, parseColor, parseIdFromUrl } from './global.helper';
66

77
const getCreatorColorRating = (el: HTMLElement): CSFDColorRating => {

src/helpers/global.helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { CSFDColorRating } from '../interfaces/global';
2-
import { Colors } from '../interfaces/user-ratings.interface';
1+
import { CSFDColorRating } from '../dto/global';
2+
import { Colors } from '../dto/user-ratings';
33

44
export const parseIdFromUrl = (url: string): number => {
55
if (url) {

0 commit comments

Comments
 (0)