-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.d.ts
64 lines (56 loc) · 1.27 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { select } from '@wordpress/data';
interface GravatarAPIAccount {
url: string;
service_label: string;
service_icon: string;
service_type: string;
is_hidden: boolean;
}
declare global {
interface GravatarEnhancedComments {
locale: string;
email?: string;
}
interface GravatarAPIProfile {
hash: string;
display_name: string;
description: string;
profile_url: string;
avatar_url: string;
avatar_alt_text: string;
location: string;
job_title: string;
company: string;
pronunciation: string;
pronouns: string;
verified_accounts: GravatarAPIAccount[];
background_color: string;
header_image: string;
}
interface QuickEditorText {
createButton: string;
updateButton: string;
viewButton: string;
errorTitle: string;
errorDescription: string;
unknownTitle: string;
unknownDescription: string;
otherUnknownTitle: string;
otherUnknownDescription: string;
}
interface QuickEditor {
locale: string;
email: string;
hash: string;
text: QuickEditorText;
avatar: string;
canEdit: boolean;
}
var geQuickEditor: QuickEditor;
var geWcMyAccount: QuickEditor;
var gravatar: {
recordTrackEvent: ( name: string, options?: any ) => void;
};
var gravatarEnhancedComments: GravatarEnhancedComments;
type SelectFn = typeof select;
}