UNPKG

1.24 kBTypeScriptView Raw
1import { DefaultValueContainer, TypeContainer, TypeParameterContainer, TraverseCallback } from './abstract';
2import { Type } from '../types/index';
3import { ContainerReflection } from './container';
4import { SignatureReflection } from './signature';
5import { TypeParameterReflection } from './type-parameter';
6export interface DeclarationHierarchy {
7 types: Type[];
8 next?: DeclarationHierarchy;
9 isTarget?: boolean;
10}
11export declare class DeclarationReflection extends ContainerReflection implements DefaultValueContainer, TypeContainer, TypeParameterContainer {
12 type?: Type;
13 typeParameters?: TypeParameterReflection[];
14 signatures?: SignatureReflection[];
15 indexSignature?: SignatureReflection;
16 getSignature?: SignatureReflection;
17 setSignature?: SignatureReflection;
18 defaultValue?: string;
19 overwrites?: Type;
20 inheritedFrom?: Type;
21 implementationOf?: Type;
22 extendedTypes?: Type[];
23 extendedBy?: Type[];
24 implementedTypes?: Type[];
25 implementedBy?: Type[];
26 typeHierarchy?: DeclarationHierarchy;
27 hasGetterOrSetter(): boolean;
28 getAllSignatures(): SignatureReflection[];
29 traverse(callback: TraverseCallback): void;
30 toObject(): any;
31 toString(): string;
32}