Skip to content

Commit

Permalink
Merge pull request #90 from Automattic/fix/verified-account-types
Browse files Browse the repository at this point in the history
Fix: Verified account type
  • Loading branch information
wellyshen authored Sep 19, 2024
2 parents a39b46c + d353ee4 commit b49adb3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions web/packages/hovercards/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ import computePosition from './compute-position';
import { escUrl, escHtml } from './sanitizer';
import __ from './i18n';

type AccountData = Record< 'service_type' | 'service_label' | 'service_icon' | 'url' | 'is_hidden', string >;
interface AccountData {
service_type: string;
service_label: string;
service_icon: string;
url: string;
is_hidden: boolean;
}

export type VerifiedAccount = Record< 'type' | 'label' | 'icon' | 'url' | 'isHidden', string >;
export interface VerifiedAccount {
type: string;
label: string;
icon: string;
url: string;
isHidden: boolean;
}

export interface ProfileData {
hash: string;
Expand Down

0 comments on commit b49adb3

Please sign in to comment.