Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 9 lines 328 B view raw
1import type { ScyllaItemIdentifier } from '../../scylla/types.js'; 2import { tryParseNonEmptyString } from '../../utils/typescript-types.js'; 3 4export function scyllaItemIdentifierToItemIdentifier(it: ScyllaItemIdentifier) { 5 return { 6 id: tryParseNonEmptyString(it.id), 7 typeId: tryParseNonEmptyString(it.type_id), 8 }; 9}