( id: string, threadInfo: RawThreadInfo, )
| 5 | import type { RawThreadInfo } from '../types/minimally-encoded-thread-permissions-types.js'; |
| 6 | |
| 7 | function createReplaceThreadOperation( |
| 8 | id: string, |
| 9 | threadInfo: RawThreadInfo, |
| 10 | ): ReplaceThreadOperation { |
| 11 | return { |
| 12 | type: 'replace', |
| 13 | payload: { |
| 14 | id, |
| 15 | threadInfo, |
| 16 | isBackedUp: getDataIsBackedUpByThread(id, threadInfo), |
| 17 | }, |
| 18 | }; |
| 19 | } |
| 20 | |
| 21 | export { createReplaceThreadOperation }; |
no test coverage detected