diff --git a/src/classes/Chapter.ts b/src/classes/Chapter.ts index f1ebe66..a268f6f 100644 --- a/src/classes/Chapter.ts +++ b/src/classes/Chapter.ts @@ -1,14 +1,4 @@ -import axiod from "https://deno.land/x/axiod@0.26.2/mod.ts"; -import type { - DOMParser, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/dom-parser.ts"; -import type { - Element, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/element.ts"; -import type { - HTMLDocument, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/document.ts"; -import { ID } from "../types.d.ts"; +import { DOMParser, Element, HTMLDocument, ID } from "../types.d.ts"; export default class Chapter { #session: { diff --git a/src/classes/Search.ts b/src/classes/Search.ts index b8a5639..c6e6858 100644 --- a/src/classes/Search.ts +++ b/src/classes/Search.ts @@ -2,15 +2,7 @@ import Work from "./Work.ts"; import asyncForEach from "../utils/asyncForeach.ts"; -import type { - DOMParser, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/dom-parser.ts"; -import type { - Element, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/element.ts"; -import type { - HTMLDocument, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/document.ts"; +import { DOMParser, Element, HTMLDocument } from "../types.d.ts"; export const Ratings = { unrated: 9, diff --git a/src/classes/Work.ts b/src/classes/Work.ts index e096389..6bb72a4 100644 --- a/src/classes/Work.ts +++ b/src/classes/Work.ts @@ -1,14 +1,5 @@ import Chapter from "./Chapter.ts"; -import type { - DOMParser, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/dom-parser.ts"; -import type { - Element, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/element.ts"; -import type { - HTMLDocument, -} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/document.ts"; -import { ID } from "../types.d.ts"; +import { DOMParser, Element, HTMLDocument, ID } from "../types.d.ts"; export default class Work { #session: { diff --git a/src/types.d.ts b/src/types.d.ts index d94ef79..393dbed 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1 +1,10 @@ export type ID = BigInt | number | string; +export type { + DOMParser, +} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/dom-parser.ts"; +export type { + Element, +} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/element.ts"; +export type { + HTMLDocument, +} from "https://denopkg.dev/gh/Ruthenic/deno-dom@master/src/dom/document.ts";