Commit f2e4113 1 parent 82b307c commit f2e4113 Copy full SHA for f2e4113
File tree 1 file changed +8
-5
lines changed
static-site/src/components/ListResources
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,22 @@ export type FilterOption = {
4
4
label : string
5
5
}
6
6
7
+ type GroupName = string
8
+ type GroupDisplayName = string
9
+
7
10
export type Group = {
8
- groupName : string
11
+ groupName : GroupName
9
12
nResources : number
10
13
nVersions ?: number
11
14
lastUpdated : any
12
15
resources : Resource [ ]
13
16
groupUrl ?: string
14
- groupDisplayName ?: string
17
+ groupDisplayName ?: GroupDisplayName
15
18
}
16
19
17
20
export type Resource = {
18
21
name : string
19
- groupName : string
22
+ groupName : GroupName
20
23
nameParts : string [ ]
21
24
sortingName : string
22
25
url : string
@@ -31,7 +34,7 @@ export type Resource = {
31
34
}
32
35
33
36
export type GroupDisplayNames = {
34
- [ name : string ] : string /* group name -> display name */
37
+ [ groupName : GroupName ] : GroupDisplayName
35
38
}
36
39
37
40
export type UpdateCadence = {
@@ -50,5 +53,5 @@ export type Card = {
50
53
export type QuickLink = {
51
54
name : string
52
55
display : string
53
- groupName ?: string
56
+ groupName ?: GroupName
54
57
}
You can’t perform that action at this time.
0 commit comments