diff options
| author | Ritesh Ghosh <[email protected]> | 2023-11-22 13:54:14 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-11-22 13:54:14 +0530 |
| commit | 1f3b98f19142243f942dead64f8dad3fa87d9546 (patch) | |
| tree | aaf563ca34198df802530e7536fcd5f2efc72d70 /src | |
| parent | f5510aa6dbf421c4b190d5c3be2a8c21f072f820 (diff) | |
| download | aniwatch-api-1f3b98f19142243f942dead64f8dad3fa87d9546.tar.xz aniwatch-api-1f3b98f19142243f942dead64f8dad3fa87d9546.zip | |
fix(ts): add strict file & type imports
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/parsers/animeAboutInfo.ts | 10 | ||||
| -rw-r--r-- | src/models/parsers/animeCategory.ts | 4 | ||||
| -rw-r--r-- | src/models/parsers/animeEpisodeSrcs.ts | 2 | ||||
| -rw-r--r-- | src/models/parsers/animeEpisodes.ts | 2 | ||||
| -rw-r--r-- | src/models/parsers/animeGenre.ts | 7 | ||||
| -rw-r--r-- | src/models/parsers/animeProducer.ts | 4 | ||||
| -rw-r--r-- | src/models/parsers/animeSearch.ts | 9 | ||||
| -rw-r--r-- | src/models/parsers/animeSearchSuggestion.ts | 4 | ||||
| -rw-r--r-- | src/models/parsers/episodeServers.ts | 2 | ||||
| -rw-r--r-- | src/models/parsers/homePage.ts | 8 |
10 files changed, 29 insertions, 23 deletions
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<ScrapedAnimeSearchResult, "mostPopularAnimes"> { 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<Anime> | 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<ScrapedAnimeCategory, CommonAnimeScrapeTypes | "genres">, 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<ScrapedAnimeCategory, "genres" | "category">, 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<ScrapedAnimeCategory, CommonAnimeScrapeTypes> { 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<AnimeSearchSuggestion> | 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<ScrapedAnimeCategory, "genres" | "top10Animes"> { |
