UNPKG

922 BTypeScriptView Raw
1import type { DeclarationReflection } from "./declaration.js";
2import type { DocumentReflection } from "./document.js";
3import type { ParameterReflection } from "./parameter.js";
4import type { ProjectReflection } from "./project.js";
5import type { ReferenceReflection } from "./reference.js";
6import type { SignatureReflection } from "./signature.js";
7import type { TypeParameterReflection } from "./type-parameter.js";
8/**
9 * A map of known {@link Reflection} concrete subclasses.
10 * This is used during deserialization to reconstruct serialized objects.
11 */
12export interface ReflectionVariant {
13 declaration: DeclarationReflection;
14 param: ParameterReflection;
15 project: ProjectReflection;
16 reference: ReferenceReflection;
17 signature: SignatureReflection;
18 typeParam: TypeParameterReflection;
19 document: DocumentReflection;
20}
21export type SomeReflection = ReflectionVariant[keyof ReflectionVariant];