fix(ts): add strict file & type imports

This commit is contained in:
Ritesh Ghosh
2023-11-22 13:56:16 +05:30
parent 5d2b27270c
commit 03b3550b49
10 changed files with 56 additions and 64 deletions
+4 -4
View File
@@ -4,11 +4,11 @@ import {
ACCEPT_HEADER,
USER_AGENT_HEADER,
ACCEPT_ENCODING_HEADER,
} from "../utils";
} from "../utils/index.js";
import axios, { AxiosError } from "axios";
import createHttpError, { HttpError } from "http-errors";
import { load, CheerioAPI, SelectorType } from "cheerio";
import { ScrapedEpisodeServers } from "../models/parsers";
import createHttpError, { type HttpError } from "http-errors";
import { load, type CheerioAPI, type SelectorType } from "cheerio";
import type { ScrapedEpisodeServers } from "../models/parsers/index.js";
// /anime/servers?episodeId=${id}
async function scrapeEpisodeServers(