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

Function getGraphqlTypename

packages/shared/src/graphql/feed.ts:88–94  ·  view source on GitHub ↗
(
  item: FeedV2Item | Post,
)

Source from the content-addressed store, hash-verified

86}
87
88const getGraphqlTypename = (
89 item: FeedV2Item | Post,
90): FeedV2Item['__typename'] | Post['__typename'] => {
91 const { __typename: typename } = item;
92
93 return typename;
94};
95
96const warnUnsupportedFeedItem = (itemType: string): void => {
97 // eslint-disable-next-line no-console

Callers 5

isFeedV2ItemFunction · 0.85
isFeedV2PostItemFunction · 0.85
isFeedV2HighlightsItemFunction · 0.85
isLegacyFeedPostFunction · 0.85
normalizeFeedV2EdgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected