-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtypes.ts
More file actions
53 lines (52 loc) · 1.22 KB
/
types.ts
File metadata and controls
53 lines (52 loc) · 1.22 KB
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
export interface RawUniversity {
/**
* The human readable name of the university
* @example "Foo Bar University"
*/
name: string
/**
* Email domains of the university
* @example [ "foo.edu", "stu.bar.edu" ]
*/
domains: string[]
/**
* Web pages of the university
* @example [ "https://www.foo.edu/" ]
*/
web_pages: string[]
/**
* Country names
*
* NOTE:
*
* 1. Some entries are using ISO 3166 country names while some are not.
* Follow the country name in existing entries when adding new entries.
* 2. GitRoll is not using this field, it is kept only for easier diff-ing
* with the upstream.
* @example "United Kingdom"
*/
country: string
/**
* Two-letter ISO 3166 country code
* @example "GB"
*/
alpha_two_code: string
/**
* Home state or province of the university if known (not used by GitRoll)
* @example "Texas"
*/
'state-province': string | null
}
export interface University extends RawUniversity {
/**
* The unique and **stable** university ID
* @example 1
*/
id: number
/**
* University abbreviation (country name may be appended if the abbreviation
* is too common)
* @example "MIT"
*/
abbr: string
}