diff --git a/lib/shared/dm-ops/create-sidebar-spec.js b/lib/shared/dm-ops/create-sidebar-spec.js --- a/lib/shared/dm-ops/create-sidebar-spec.js +++ b/lib/shared/dm-ops/create-sidebar-spec.js @@ -17,7 +17,7 @@ import { threadTypes } from '../../types/thread-types-enum.js'; import { updateTypes } from '../../types/update-types-enum.js'; -export const createSidebarSpec: DMOperationSpec = +const createSidebarSpec: DMOperationSpec = Object.freeze({ processDMOperation: async ( dmOperation: DMCreateSidebarOperation, @@ -104,3 +104,5 @@ }; }, }); + +export { createSidebarSpec }; diff --git a/lib/shared/dm-ops/create-thread-spec.js b/lib/shared/dm-ops/create-thread-spec.js --- a/lib/shared/dm-ops/create-thread-spec.js +++ b/lib/shared/dm-ops/create-thread-spec.js @@ -39,7 +39,7 @@ +viewerID: string, }; type MutableThickRawThreadInfo = { ...ThickRawThreadInfo }; -export function createThickRawThreadInfo( +function createThickRawThreadInfo( input: CreateThickRawThreadInfoInput, ): MutableThickRawThreadInfo { const { @@ -100,7 +100,7 @@ }; } -export const createThreadSpec: DMOperationSpec = +const createThreadSpec: DMOperationSpec = Object.freeze({ processDMOperation: async ( dmOperation: DMCreateThreadOperation, @@ -158,3 +158,5 @@ }; }, }); + +export { createThickRawThreadInfo, createThreadSpec }; diff --git a/lib/shared/dm-ops/send-text-message-spec.js b/lib/shared/dm-ops/send-text-message-spec.js --- a/lib/shared/dm-ops/send-text-message-spec.js +++ b/lib/shared/dm-ops/send-text-message-spec.js @@ -8,7 +8,7 @@ import { updateTypes } from '../../types/update-types-enum.js'; import type { ClientUpdateInfo } from '../../types/update-types.js'; -export const sendTextMessageSpec: DMOperationSpec = +const sendTextMessageSpec: DMOperationSpec = Object.freeze({ processDMOperation: async ( dmOperation: DMSendTextMessageOperation, @@ -38,3 +38,5 @@ }; }, }); + +export { sendTextMessageSpec };