1
0
Fork 0

Add typing to allPages.ts.

This commit is contained in:
Kitteh 2021-05-07 23:28:49 +01:00
parent 99cef8f26d
commit ac7372029d
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import { Page } from "./types/Page.js";
import { allPages } from "./allPages.js"
import { allPages } from "./allPages"
import {
getKeyByObjectPropertyValue,
} from "./utils";

View file

@ -17,8 +17,13 @@ import { TransitEncryptPage } from "./pages/Transit/TransitEncrypt.js";
import { TransitViewPage } from "./pages/Transit/TransitView.js";
import { TransitViewSecretPage } from "./pages/Transit/TransitViewSecret.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(),
ME: new MePage(),
TOTP: new TOTPViewPage(),