Add typing to allPages.ts.
This commit is contained in:
parent
99cef8f26d
commit
ac7372029d
|
@ -1,5 +1,5 @@
|
||||||
import { Page } from "./types/Page.js";
|
import { Page } from "./types/Page.js";
|
||||||
import { allPages } from "./allPages.js"
|
import { allPages } from "./allPages"
|
||||||
import {
|
import {
|
||||||
getKeyByObjectPropertyValue,
|
getKeyByObjectPropertyValue,
|
||||||
} from "./utils";
|
} from "./utils";
|
||||||
|
|
|
@ -17,8 +17,13 @@ import { TransitEncryptPage } from "./pages/Transit/TransitEncrypt.js";
|
||||||
import { TransitViewPage } from "./pages/Transit/TransitView.js";
|
import { TransitViewPage } from "./pages/Transit/TransitView.js";
|
||||||
import { TransitViewSecretPage } from "./pages/Transit/TransitViewSecret.js";
|
import { TransitViewSecretPage } from "./pages/Transit/TransitViewSecret.js";
|
||||||
import { UnsealPage } from "./pages/Unseal.js";
|
import { UnsealPage } from "./pages/Unseal.js";
|
||||||
|
import { Page } from "./types/Page.js";
|
||||||
|
|
||||||
export const allPages = {
|
type pagesList = {
|
||||||
|
[key: string]: Page
|
||||||
|
}
|
||||||
|
|
||||||
|
export const allPages: pagesList = {
|
||||||
HOME: new HomePage(),
|
HOME: new HomePage(),
|
||||||
ME: new MePage(),
|
ME: new MePage(),
|
||||||
TOTP: new TOTPViewPage(),
|
TOTP: new TOTPViewPage(),
|
Loading…
Reference in a new issue