1
0
Fork 0

Add typing to internalErrors.ts.

This commit is contained in:
Kitteh 2021-05-07 23:35:43 +01:00
parent c1455c25a4
commit 8351b81b82
7 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
import { DoesNotExistError } from "../types/internalErrors.js";
import { DoesNotExistError } from "../types/internalErrors";
import { appendAPIURL, getHeaders } from "./apiUtils.js";

View file

@ -1,4 +1,4 @@
import { DoesNotExistError } from "../types/internalErrors.js";
import { DoesNotExistError } from "../types/internalErrors";
import { appendAPIURL, getHeaders } from "./apiUtils.js";

View file

@ -1,4 +1,4 @@
import { DoesNotExistError } from "../types/internalErrors.js";
import { DoesNotExistError } from "../types/internalErrors";
import { appendAPIURL, getHeaders } from "./apiUtils.js";

View file

@ -1,4 +1,4 @@
import { DoesNotExistError } from "../../types/internalErrors.js";
import { DoesNotExistError } from "../../types/internalErrors";
import { Page } from "../../types/Page";
import { changePage, setErrorText, setTitleElement } from "../../pageUtils";
import { getSecrets } from "../../api/getSecrets";

View file

@ -1,5 +1,5 @@
import { CopyableInputBox } from "../../elements/CopyableInputBox.js";
import { DoesNotExistError } from "../../types/internalErrors.js";
import { DoesNotExistError } from "../../types/internalErrors";
import { Page } from "../../types/Page";
import { changePage, setErrorText, setPageContent, setTitleElement } from "../../pageUtils";
import { getTOTPCode } from "../../api/getTOTPCode";

View file

@ -1,4 +1,4 @@
import { DoesNotExistError } from "../../types/internalErrors.js";
import { DoesNotExistError } from "../../types/internalErrors";
import { Page } from "../../types/Page";
import { changePage, setErrorText, setTitleElement } from "../../pageUtils";
import { getTransitKeys } from "../../api/getTransitKeys";

View file

@ -1,4 +1,4 @@
// These are all errors that the user won't see
// but are used internally.
export const DoesNotExistError = new Error("Does not exist.")
export const DoesNotExistError: Error = new Error("Does not exist.")