Skip to content

Commit f19c8bc

Browse files
authored
fix: incorrect typing for unresolved links for taxonomy (#2401)
1 parent 9a46714 commit f19c8bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/types/concept-scheme.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from './link'
1+
import { UnresolvedLink } from './link'
22
import { LocaleCode } from './locale'
33

44
type ISODateString = string
@@ -22,8 +22,8 @@ export interface ConceptScheme<Locales extends LocaleCode> {
2222
[locale in Locales]: string
2323
}
2424
| null
25-
topConcepts: Link<'TaxonomyConcept'>[]
26-
concepts: Link<'TaxonomyConcept'>[]
25+
topConcepts: UnresolvedLink<'TaxonomyConcept'>[]
26+
concepts: UnresolvedLink<'TaxonomyConcept'>[]
2727
totalConcepts: number
2828
}
2929

lib/types/concept.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from './link'
1+
import { UnresolvedLink } from './link'
22
import { LocaleCode } from './locale'
33

44
type ISODateString = string
@@ -59,8 +59,8 @@ export interface Concept<Locales extends LocaleCode> {
5959
}
6060
| null
6161
notations?: string[]
62-
broader?: Link<'TaxonomyConcept'>[]
63-
related?: Link<'TaxonomyConcept'>[]
62+
broader?: UnresolvedLink<'TaxonomyConcept'>[]
63+
related?: UnresolvedLink<'TaxonomyConcept'>[]
6464
}
6565

6666
export type ConceptCollection<Locale extends LocaleCode> = {

0 commit comments

Comments
 (0)