forked from annexare/Countries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tpl.d.ts
98 lines (90 loc) · 1.88 KB
/
index.tpl.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Type definitions for // name // version
// Project: https://github.com/annexare/Countries
// Definitions by: Dmytro <https://github.com/z-ax>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export interface Country {
/**
* Capital in English.
*/
capital: string;
/**
* Continent alpha-2 code.
*/
continent: string;
/**
* Currency alpha-3 codes, comma-separated.
*/
currency: string;
/**
* Country flag Emoji.
*/
emoji: string;
/**
* Country flag Emoji string unicode characters space-separated, e.g. "U+1F1FA U+1F1E6".
*/
emojiU: string;
/**
* List of Country's spoken Languages (alpha-2 codes).
*/
languages: string[];
/**
* Country name in English.
*/
name: string;
/**
* Country name written natively.
*/
native: string;
/**
* Calling phone codes, comma-separated.
*/
phone: string;
}
export interface Language {
/**
* Language name in English.
*/
name: string;
/**
* Language name written natively.
*/
native: string;
/**
* Specified if Language is RTL.
*/
rtl?: number;
}
/**
* Continents, key-value object (key is alpha-2 code).
*/
export const continents: {
// continents
};
/**
* Countries, key-value object (key is alpha-2 code, uppercase).
*/
export const countries: {
// countries
};
/**
* Languages in use only, key-value object (key is alpha-2 code).
*/
export const languages: {
// languages
};
/**
* Languages, key-value object (key is alpha-2 code).
* A complete list including not used by Countries list.
*/
export const languagesAll: {
// languagesAll
};
/**
* Returns country flag Emoji string.
*/
export function getEmojiFlag(countryCode: string): string;
/**
* Returns country flag Emoji string unicode characters space-separated, e.g. "U+1F1FA U+1F1E6".
*/
export function getUnicode(emoji: string): string;