Browse Source

Add a new type

Manav Rathi 1 năm trước cách đây
mục cha
commit
6d289d73db

+ 6 - 0
web/packages/shared/apps/constants.ts

@@ -1,5 +1,11 @@
 import { ACCOUNTS_PAGES, AUTH_PAGES, PHOTOS_PAGES } from "../constants/pages";
 import { ACCOUNTS_PAGES, AUTH_PAGES, PHOTOS_PAGES } from "../constants/pages";
 
 
+/**
+ * Arbitrary names that we used as keys for indexing various constants for each
+ * of our apps.
+ */
+export type AppName = "account" | "albums" | "auth" | "photos";
+
 export enum APPS {
 export enum APPS {
     PHOTOS = "PHOTOS",
     PHOTOS = "PHOTOS",
     AUTH = "AUTH",
     AUTH = "AUTH",