Page MenuHomePhabricator

D12480.id41516.diff
No OneTemporary

D12480.id41516.diff

diff --git a/lib/types/thread-types-enum.js b/lib/types/thread-types-enum.js
--- a/lib/types/thread-types-enum.js
+++ b/lib/types/thread-types-enum.js
@@ -6,7 +6,7 @@
import { values } from '../utils/objects.js';
import { tNumEnum } from '../utils/validation-utils.js';
-export const threadTypes = Object.freeze({
+export const thinThreadTypes = Object.freeze({
//OPEN: 0, (DEPRECATED)
//CLOSED: 1, (DEPRECATED)
//SECRET: 2, (DEPRECATED)
@@ -38,7 +38,14 @@
// like COMMUNITY_SECRET_ANNOUNCEMENT_SUBTHREAD, but you can't leave
GENESIS: 12,
});
-export type ThreadType = $Values<typeof threadTypes>;
+export type ThinThreadType = $Values<typeof thinThreadTypes>;
+
+export type ThreadType = ThinThreadType;
+
+export const threadTypes = Object.freeze({
+ ...thinThreadTypes,
+});
+
export function assertThreadType(threadType: number): ThreadType {
invariant(
threadType === 3 ||

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 11:11 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2522704
Default Alt Text
D12480.id41516.diff (911 B)

Event Timeline