Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3282533
D12480.id41516.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
911 B
Referenced Files
None
Subscribers
None
D12480.id41516.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12480: [lib] Rename threadTypes to thinThreadTypes
Attached
Detach File
Event Timeline
Log In to Comment