1 2 3 4 5 6 7 8 9 10 11 12
export interface CleanSocialMedia { discord: string | null forums: string | null } export function cleanSocialMedia(data): CleanSocialMedia { return { discord: data?.socialMedia?.links?.DISCORD || null, forums: data?.socialMedia?.links?.HYPIXEL || null } }