Changeset View
Changeset View
Standalone View
Standalone View
lib/utils/thread-ops-utils.js
// @flow | // @flow | ||||
import { assertThreadType } from '../types/thread-types-enum.js'; | |||||
import { | import { | ||||
type ClientDBThreadInfo, | type ClientDBThreadInfo, | ||||
type ThreadStoreOperation, | type ThreadStoreOperation, | ||||
type ClientDBThreadStoreOperation, | type ClientDBThreadStoreOperation, | ||||
type RawThreadInfo, | type RawThreadInfo, | ||||
assertThreadType, | |||||
} from '../types/thread-types.js'; | } from '../types/thread-types.js'; | ||||
function convertRawThreadInfoToClientDBThreadInfo( | function convertRawThreadInfoToClientDBThreadInfo( | ||||
rawThreadInfo: RawThreadInfo, | rawThreadInfo: RawThreadInfo, | ||||
): ClientDBThreadInfo { | ): ClientDBThreadInfo { | ||||
return { | return { | ||||
...rawThreadInfo, | ...rawThreadInfo, | ||||
creationTime: rawThreadInfo.creationTime.toString(), | creationTime: rawThreadInfo.creationTime.toString(), | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |