Skip to content

Commit

Permalink
fix: incorrect typing for unresolved links for taxonomy (#2401)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfonseca authored Jan 7, 2025
1 parent 9a46714 commit f19c8bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/types/concept-scheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from './link'
import { UnresolvedLink } from './link'
import { LocaleCode } from './locale'

type ISODateString = string
Expand All @@ -22,8 +22,8 @@ export interface ConceptScheme<Locales extends LocaleCode> {
[locale in Locales]: string
}
| null
topConcepts: Link<'TaxonomyConcept'>[]
concepts: Link<'TaxonomyConcept'>[]
topConcepts: UnresolvedLink<'TaxonomyConcept'>[]
concepts: UnresolvedLink<'TaxonomyConcept'>[]
totalConcepts: number
}

Expand Down
6 changes: 3 additions & 3 deletions lib/types/concept.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from './link'
import { UnresolvedLink } from './link'
import { LocaleCode } from './locale'

type ISODateString = string
Expand Down Expand Up @@ -59,8 +59,8 @@ export interface Concept<Locales extends LocaleCode> {
}
| null
notations?: string[]
broader?: Link<'TaxonomyConcept'>[]
related?: Link<'TaxonomyConcept'>[]
broader?: UnresolvedLink<'TaxonomyConcept'>[]
related?: UnresolvedLink<'TaxonomyConcept'>[]
}

export type ConceptCollection<Locale extends LocaleCode> = {
Expand Down

0 comments on commit f19c8bc

Please sign in to comment.