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

Function isSourceUserSource

packages/shared/src/graphql/sources.ts:70–71  ·  view source on GitHub ↗
(source?: Source)

Source from the content-addressed store, hash-verified

68}
69
70export const isSourceUserSource = (source?: Source): boolean =>
71 source?.type === SourceType.User;
72
73export const isSourceSquadOrMachine = (source?: Source): boolean =>
74 source?.type === SourceType.Squad || source?.type === SourceType.Machine;

Callers 15

RepostListItemFunction · 0.90
PostModalFunction · 0.90
PollPostModalFunction · 0.90
FreeformList.tsxFile · 0.90
ShareList.tsxFile · 0.90
PostCardHeaderFunction · 0.90
SquadPostCardHeaderFunction · 0.90
PostCardHeaderFunction · 0.90
ArticleList.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected