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 { allPages } from "./allPages.js"
|
||||
import { allPages } from "./allPages"
|
||||
import {
|
||||
getKeyByObjectPropertyValue,
|
||||
} from "./utils";
|
||||
|
|
|
@ -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(),
|
Loading…
Reference in a new issue