MCPcopy Create free account
hub / github.com/FxEmbed/FxEmbed / isGraphQLTwitterStatus

Function isGraphQLTwitterStatus

src/helpers/graphql.ts:15–23  ·  view source on GitHub ↗
(response: unknown)

Source from the content-addressed store, hash-verified

13};
14
15export const isGraphQLTwitterStatus = (response: unknown): response is GraphQLTwitterStatus => {
16 return (
17 typeof response === 'object' &&
18 response !== null &&
19 (('__typename' in response &&
20 (response.__typename === 'Tweet' || response.__typename === 'TweetWithVisibilityResults')) ||
21 typeof (response as GraphQLTwitterStatus).legacy?.full_text === 'string')
22 );
23};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected