clean up imports a bit

master
Drake 2 months ago
parent 3723f1063a
commit b623f6c162

@ -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: {

@ -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,

@ -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: {

9
src/types.d.ts vendored

@ -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";

Loading…
Cancel
Save