Page MenuHomePhabricator

D12480.diff
No OneTemporary

D12480.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
Sat, Nov 23, 11:27 AM (17 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2570424
Default Alt Text
D12480.diff (911 B)

Event Timeline