import { Element } from '@speclynx/apidom-datamodel'; import ReferenceSet from './ReferenceSet.ts'; /** * @public */ export interface ReferenceOptions { readonly uri: string; readonly depth?: number; readonly refSet?: ReferenceSet; readonly value: T; } /** * @public */ class Reference { public readonly uri: string; public readonly depth: number; public readonly value: T; public refSet?: ReferenceSet; public readonly errors: Array; constructor({ uri, depth = 0, refSet, value }: ReferenceOptions) { this.uri = uri; this.value = value; this.depth = depth; this.refSet = refSet; this.errors = []; } } export default Reference;