1 | export interface ReflectionContainer {
|
2 | id: number;
|
3 | name: string;
|
4 | kind: number;
|
5 | kindString: string;
|
6 | flags: ReflectionFlagsObject;
|
7 | originalName?: string;
|
8 | }
|
9 | export interface DefaultValueContainer {
|
10 | defaultValue: string;
|
11 | }
|
12 | export interface TypeContainer {
|
13 | type: TypeObject;
|
14 | }
|
15 | export interface TypeParameterContainer {
|
16 | typeParameters: TypeContainer[];
|
17 | }
|
18 | export interface DecoratesContainer {
|
19 | decorates: TypeObject[];
|
20 | }
|
21 | export interface DecoratorsContainer<T> {
|
22 | decorators: T[];
|
23 | }
|
24 | export interface SourceReferenceContainer<T> {
|
25 | sources: T[];
|
26 | }
|
27 | export interface GroupsContainer<T> {
|
28 | groups: T[];
|
29 | }
|
30 | export interface CategoriesContainer<T> {
|
31 | categories: T[];
|
32 | }
|
33 | export interface ContainerReflectionContainer<TChildren> {
|
34 | children: TChildren[];
|
35 | }
|
36 | export interface CommentContainer<TComment> {
|
37 | comment: TComment;
|
38 | }
|
39 | export interface SignatureReflectionContainer<TParameters> {
|
40 | overwrites?: TypeObject;
|
41 | inheritedFrom?: TypeObject;
|
42 | implementationOf?: TypeObject;
|
43 | parameters?: TParameters[];
|
44 | }
|
45 | export interface DeclarationReflectionContainer<T> {
|
46 | signatures?: T[];
|
47 | indexSignature?: T[];
|
48 | getSignature?: T[];
|
49 | setSignature?: T[];
|
50 | extendedTypes?: TypeObject[];
|
51 | extendedBy?: TypeObject[];
|
52 | implementedTypes?: TypeObject[];
|
53 | implementedBy?: TypeObject[];
|
54 | }
|
55 | export interface ReflectionObject extends ReflectionContainer, Partial<CommentContainer<CommentObject>>, Partial<DecoratesContainer>, Partial<DecoratorsContainer<DecoratorObject>> {
|
56 | }
|
57 | export interface ParameterReflectionObject extends ReflectionObject, TypeContainer, DefaultValueContainer {
|
58 | }
|
59 | export interface ContainerReflectionObject extends ReflectionObject, Partial<SourceReferenceContainer<SourceReferenceObject>>, Partial<GroupsContainer<ReflectionGroupObject>>, Partial<CategoriesContainer<ReflectionCategoryObject>>, ContainerReflectionContainer<ReflectionObject> {
|
60 | }
|
61 | export interface DeclarationReflectionObject extends ContainerReflectionObject, DefaultValueContainer, Partial<TypeContainer>, Partial<TypeParameterContainer>, Partial<SignatureReflectionContainer<ParameterReflectionObject>>, DeclarationReflectionContainer<SignatureReflectionObject> {
|
62 | }
|
63 | export interface SignatureReflectionObject extends ReflectionObject, Partial<SignatureReflectionContainer<ParameterReflectionObject>>, Partial<TypeContainer>, Partial<TypeParameterContainer> {
|
64 | }
|
65 | export interface CommentObject {
|
66 | shortText?: string;
|
67 | text?: string;
|
68 | returns?: string;
|
69 | tags?: CommentTagObject[];
|
70 | }
|
71 | export interface CommentTagObject {
|
72 | tag: string;
|
73 | text: string;
|
74 | param?: string;
|
75 | }
|
76 | export interface DecoratorObject {
|
77 | name: string;
|
78 | type?: TypeObject;
|
79 | arguments?: any;
|
80 | }
|
81 | export interface ProjectReflectionObject extends ContainerReflectionObject {
|
82 | }
|
83 | export interface SourceReferenceObject {
|
84 | fileName: string;
|
85 | line: number;
|
86 | character: number;
|
87 | }
|
88 | export interface TypeObject {
|
89 | type: 'void' | 'array' | 'intersection' | 'intrinsic' | 'reference' | 'reflection' | 'stringLiteral' | 'tuple' | 'typeParameter' | 'union' | 'unknown' | string;
|
90 | elementType?: TypeObject;
|
91 | types?: TypeObject[];
|
92 | name?: 'Object' | 'string' | 'number' | 'boolean' | 'this' | string;
|
93 | id?: number;
|
94 | typeArguments?: TypeObject[];
|
95 | declaration?: ReflectionObject;
|
96 | value?: string;
|
97 | elements?: TypeObject[];
|
98 | constraint?: TypeObject;
|
99 | }
|
100 | export interface ReflectionGroupObject {
|
101 | title: string;
|
102 | kind: number;
|
103 | children?: number[];
|
104 | categories?: ReflectionCategoryObject[];
|
105 | }
|
106 | export interface ReflectionCategoryObject {
|
107 | title: string;
|
108 | children?: number[];
|
109 | }
|
110 | export interface ReflectionFlagsObject {
|
111 | isPrivate?: boolean;
|
112 | isProtected?: boolean;
|
113 | isPublic?: boolean;
|
114 | isStatic?: boolean;
|
115 | isExported?: boolean;
|
116 | isExternal?: boolean;
|
117 | isOptional?: boolean;
|
118 | isRest?: boolean;
|
119 | hasExportAssignment?: boolean;
|
120 | isConstructorProperty?: boolean;
|
121 | }
|