( post: ExtendedQuestion | Answer, )
| 38 | parentAuthorName?: string | null; |
| 39 | } |
| 40 | const isExtendedQuestion = ( |
| 41 | post: ExtendedQuestion | Answer, |
| 42 | ): post is ExtendedQuestion => { |
| 43 | return (post as ExtendedQuestion).slug !== undefined; |
| 44 | }; |
| 45 | const PostCard: React.FC<IProps> = ({ |
| 46 | post, |
| 47 | sessionUser, |