Skip to content

Commit d353ee4

Browse files
committed
Fix: Verified account type
1 parent a39b46c commit d353ee4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

web/packages/hovercards/src/core.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@ import computePosition from './compute-position';
33
import { escUrl, escHtml } from './sanitizer';
44
import __ from './i18n';
55

6-
type AccountData = Record< 'service_type' | 'service_label' | 'service_icon' | 'url' | 'is_hidden', string >;
6+
interface AccountData {
7+
service_type: string;
8+
service_label: string;
9+
service_icon: string;
10+
url: string;
11+
is_hidden: boolean;
12+
}
713

8-
export type VerifiedAccount = Record< 'type' | 'label' | 'icon' | 'url' | 'isHidden', string >;
14+
export interface VerifiedAccount {
15+
type: string;
16+
label: string;
17+
icon: string;
18+
url: string;
19+
isHidden: boolean;
20+
}
921

1022
export interface ProfileData {
1123
hash: string;

0 commit comments

Comments
 (0)