Skip to content

Commit

Permalink
types: add SitelinkBadges type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlath committed Mar 3, 2024
1 parent f024d93 commit ad69e34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/sitelinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import type { ItemId } from './entity.js'
import type { Site } from '../helpers/wikimedia_constants.js'
import type { Url } from '../utils/build_url.js'

export type SitelinkBadges = ItemId[]

export interface Sitelink {
site: Site
title: string
badges: ItemId[]
badges: SitelinkBadges
url?: Url
}

Expand Down

0 comments on commit ad69e34

Please sign in to comment.