Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

Refactor postHelpers (#5653)

authored by yoginth.com and committed by

GitHub fe7f9fac ff44755b

+3 -3
+3 -3
packages/helpers/postHelpers.ts
··· 11 11 ? T 12 12 : never; 13 13 14 - export function isRepost<T extends AnyPostFragment>( 14 + export const isRepost = <T extends AnyPostFragment>( 15 15 post: null | T 16 - ): post is PickByTypename<T, "Repost"> { 16 + ): post is PickByTypename<T, "Repost"> => { 17 17 return post?.__typename === "Repost"; 18 - } 18 + };