浏览代码

Add a new type

Manav Rathi 1 年之前
父节点
当前提交
6d289d73db
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      web/packages/shared/apps/constants.ts

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

@@ -1,5 +1,11 @@
 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 {
     PHOTOS = "PHOTOS",
     AUTH = "AUTH",