refactor: types dir import

This commit is contained in:
Ritesh Ghosh
2024-01-19 19:55:31 +05:30
parent c0ee0bc7b1
commit 9c37cb0cad
11 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ import {
ACCEPT_ENCODING_HEADER,
} from "../utils/index.js";
import axios, { AxiosError } from "axios";
import { type AnimeCategories } from "../models/anime.js";
import { type AnimeCategories } from "../types/anime.js";
import createHttpError, { type HttpError } from "http-errors";
import { load, type CheerioAPI, type SelectorType } from "cheerio";
import { type ScrapedAnimeCategory } from "../models/parsers/index.js";
import { type ScrapedAnimeCategory } from "../types/parsers/index.js";
// /anime/:category?page=${page}
async function scrapeAnimeCategory(