@@ -20,13 +20,14 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2020import type { PackageURL } from 'packageurl-js'
2121
2222import type { Comparable } from '../_helpers/sortable'
23- import { SortableComparables , SortableStringables } from '../_helpers/sortable'
24- import type { Stringable } from '../_helpers/stringable'
23+ import { SortableComparables } from '../_helpers/sortable'
2524import { treeIteratorSymbol } from '../_helpers/tree'
2625import type { ComponentScope , ComponentType } from '../enums'
2726import type { CPE } from '../types/cpe'
2827import { isCPE } from '../types/cpe'
2928import { BomRef , BomRefRepository } from './bomRef'
29+ import type { Copyright } from "./copyright" ;
30+ import { CopyrightRepository } from "./copyright" ;
3031import { ExternalReferenceRepository } from './externalReference'
3132import { HashDictionary } from './hash'
3233import { LicenseRepository } from './license'
@@ -61,7 +62,7 @@ export class Component implements Comparable<Component> {
6162 type : ComponentType
6263 name : string
6364 author ?: string
64- copyright ?: Stringable
65+ copyright ?: Copyright
6566 description ?: string
6667 externalReferences : ExternalReferenceRepository
6768 group ?: string
@@ -167,10 +168,10 @@ export interface OptionalComponentEvidenceProperties {
167168
168169export class ComponentEvidence {
169170 licenses : LicenseRepository
170- copyright : SortableStringables
171+ copyright : CopyrightRepository
171172
172173 constructor ( op : OptionalComponentEvidenceProperties = { } ) {
173174 this . licenses = op . licenses ?? new LicenseRepository ( )
174- this . copyright = op . copyright ?? new SortableStringables ( )
175+ this . copyright = op . copyright ?? new CopyrightRepository ( )
175176 }
176177}
0 commit comments