(response: unknown)
| 13 | }; |
| 14 | |
| 15 | export 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected