Skip to content

Commit

Permalink
fixup! 🚧 TypeScript-ify ListResources
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed May 24, 2024
1 parent 82b307c commit f2e4113
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions static-site/src/components/ListResources/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@ export type FilterOption = {
label: string
}

type GroupName = string
type GroupDisplayName = string

export type Group = {
groupName: string
groupName: GroupName
nResources: number
nVersions?: number
lastUpdated: any
resources: Resource[]
groupUrl?: string
groupDisplayName?: string
groupDisplayName?: GroupDisplayName
}

export type Resource = {
name: string
groupName: string
groupName: GroupName
nameParts: string[]
sortingName: string
url: string
Expand All @@ -31,7 +34,7 @@ export type Resource = {
}

export type GroupDisplayNames = {
[name: string] : string /* group name -> display name */
[groupName: GroupName] : GroupDisplayName
}

export type UpdateCadence = {
Expand All @@ -50,5 +53,5 @@ export type Card = {
export type QuickLink = {
name: string
display: string
groupName?: string
groupName?: GroupName
}

0 comments on commit f2e4113

Please sign in to comment.