MCPcopy Create free account
hub / github.com/dailydotdev/apps / getHighlightIds

Function getHighlightIds

packages/shared/src/graphql/highlights.ts:52–53  ·  view source on GitHub ↗
(highlights: HighlightIdentity[])

Source from the content-addressed store, hash-verified

50type HighlightIdentity = Pick<PostHighlight, 'id'>;
51
52export const getHighlightIds = (highlights: HighlightIdentity[]): string[] =>
53 highlights.map(({ id }) => id);
54
55export const getHighlightIdsKey = (highlights: HighlightIdentity[]): string =>
56 getHighlightIds(highlights).join('-');

Callers 3

FeedItemComponentFunction · 0.90
useLogImpressionFunction · 0.90
getHighlightIdsKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected