diff --git a/src/models/parsers/animeAboutInfo.ts b/src/models/parsers/animeAboutInfo.ts index 9f20fce..274e7c2 100644 --- a/src/models/parsers/animeAboutInfo.ts +++ b/src/models/parsers/animeAboutInfo.ts @@ -1,11 +1,11 @@ -import { HttpError } from "http-errors"; -import { ScrapedAnimeSearchResult } from "./animeSearch"; -import { - AnimeGeneralAboutInfo, +import type { Season, RelatedAnime, RecommendedAnime, -} from "../anime"; + AnimeGeneralAboutInfo, +} from "../anime.js"; +import { type HttpError } from "http-errors"; +import { type ScrapedAnimeSearchResult } from "./animeSearch.js"; export interface ScrapedAnimeAboutInfo extends Pick { diff --git a/src/models/parsers/animeCategory.ts b/src/models/parsers/animeCategory.ts index 7402e59..89c56f0 100644 --- a/src/models/parsers/animeCategory.ts +++ b/src/models/parsers/animeCategory.ts @@ -1,5 +1,5 @@ -import { HttpError } from "http-errors"; -import { Anime, Top10Anime } from "../anime"; +import type { HttpError } from "http-errors"; +import type { Anime, Top10Anime } from "../anime.js"; export interface ScrapedAnimeCategory { animes: Array | HttpError; diff --git a/src/models/parsers/animeEpisodeSrcs.ts b/src/models/parsers/animeEpisodeSrcs.ts index 7a2c1cb..ef58ed3 100644 --- a/src/models/parsers/animeEpisodeSrcs.ts +++ b/src/models/parsers/animeEpisodeSrcs.ts @@ -1,4 +1,4 @@ -import { Intro, Subtitle, Video } from "../extractor"; +import type { Intro, Subtitle, Video } from "../extractor.js"; export interface ScrapedAnimeEpisodesSources { headers?: { diff --git a/src/models/parsers/animeEpisodes.ts b/src/models/parsers/animeEpisodes.ts index 404bad0..3587573 100644 --- a/src/models/parsers/animeEpisodes.ts +++ b/src/models/parsers/animeEpisodes.ts @@ -1,4 +1,4 @@ -import { AnimeEpisode } from "../anime"; +import { type AnimeEpisode } from "../anime.js"; export interface ScrapedAnimeEpisodes { totalEpisodes: number; diff --git a/src/models/parsers/animeGenre.ts b/src/models/parsers/animeGenre.ts index 09e07fe..10f8b85 100644 --- a/src/models/parsers/animeGenre.ts +++ b/src/models/parsers/animeGenre.ts @@ -1,5 +1,8 @@ -import { ScrapedHomePage } from "./homePage"; -import { ScrapedAnimeCategory, CommonAnimeScrapeTypes } from "./animeCategory"; +import type { + ScrapedAnimeCategory, + CommonAnimeScrapeTypes, +} from "./animeCategory.js"; +import { type ScrapedHomePage } from "./homePage.js"; export interface ScrapedGenreAnime extends Pick, diff --git a/src/models/parsers/animeProducer.ts b/src/models/parsers/animeProducer.ts index 1a2a788..bcd784e 100644 --- a/src/models/parsers/animeProducer.ts +++ b/src/models/parsers/animeProducer.ts @@ -1,5 +1,5 @@ -import { ScrapedHomePage } from "./homePage"; -import { ScrapedAnimeCategory } from "./animeCategory"; +import type { ScrapedHomePage } from "./homePage.js"; +import type { ScrapedAnimeCategory } from "./animeCategory.js"; export interface ScrapedProducerAnime extends Omit, diff --git a/src/models/parsers/animeSearch.ts b/src/models/parsers/animeSearch.ts index a03a97a..fdcca4f 100644 --- a/src/models/parsers/animeSearch.ts +++ b/src/models/parsers/animeSearch.ts @@ -1,6 +1,9 @@ -import { HttpError } from "http-errors"; -import { MostPopularAnime } from "../anime"; -import { ScrapedAnimeCategory, CommonAnimeScrapeTypes } from "./animeCategory"; +import type { + ScrapedAnimeCategory, + CommonAnimeScrapeTypes, +} from "./animeCategory.js"; +import type { HttpError } from "http-errors"; +import type { MostPopularAnime } from "../anime.js"; export interface ScrapedAnimeSearchResult extends Pick { diff --git a/src/models/parsers/animeSearchSuggestion.ts b/src/models/parsers/animeSearchSuggestion.ts index 1b7c6ec..4c262a4 100644 --- a/src/models/parsers/animeSearchSuggestion.ts +++ b/src/models/parsers/animeSearchSuggestion.ts @@ -1,5 +1,5 @@ -import { HttpError } from "http-errors"; -import { AnimeSearchSuggestion } from "../anime"; +import type { HttpError } from "http-errors"; +import type { AnimeSearchSuggestion } from "../anime.js"; export interface ScrapedAnimeSearchSuggestion { suggestions: Array | HttpError; diff --git a/src/models/parsers/episodeServers.ts b/src/models/parsers/episodeServers.ts index 4188c30..2d8cb5e 100644 --- a/src/models/parsers/episodeServers.ts +++ b/src/models/parsers/episodeServers.ts @@ -1,4 +1,4 @@ -import type { SubEpisode, DubEpisode } from "../anime"; +import type { SubEpisode, DubEpisode } from "../anime.js"; export interface ScrapedEpisodeServers { sub: SubEpisode[]; diff --git a/src/models/parsers/homePage.ts b/src/models/parsers/homePage.ts index 39f44d3..5641a9a 100644 --- a/src/models/parsers/homePage.ts +++ b/src/models/parsers/homePage.ts @@ -1,12 +1,12 @@ -import { HttpError } from "http-errors"; -import { ScrapedAnimeCategory } from "./animeCategory"; -import { +import type { TrendingAnime, SpotlightAnime, TopAiringAnime, TopUpcomingAnime, LatestEpisodeAnime, -} from "../anime"; +} from "../anime.js"; +import type { HttpError } from "http-errors"; +import type { ScrapedAnimeCategory } from "./animeCategory.js"; export interface ScrapedHomePage extends Pick {