Add typing to internalErrors.ts.
This commit is contained in:
parent
c1455c25a4
commit
8351b81b82
|
@ -1,4 +1,4 @@
|
|||
import { DoesNotExistError } from "../types/internalErrors.js";
|
||||
import { DoesNotExistError } from "../types/internalErrors";
|
||||
import { appendAPIURL, getHeaders } from "./apiUtils.js";
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { DoesNotExistError } from "../types/internalErrors.js";
|
||||
import { DoesNotExistError } from "../types/internalErrors";
|
||||
import { appendAPIURL, getHeaders } from "./apiUtils.js";
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { DoesNotExistError } from "../types/internalErrors.js";
|
||||
import { DoesNotExistError } from "../types/internalErrors";
|
||||
import { appendAPIURL, getHeaders } from "./apiUtils.js";
|
||||
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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.")
|
Loading…
Reference in a new issue