1 | import globalContext from './globalContext';
|
2 |
|
3 | import { Type, TypeParameter, TypeBox, TypeReference, ParameterizedTypeAlias, TypeAlias, TypeConstructor, GenericType, NullLiteralType, NumberType, NumericLiteralType, BooleanType, BooleanLiteralType, SymbolType, SymbolLiteralType, StringType, StringLiteralType, ArrayType, ObjectType, ObjectTypeCallProperty, ObjectTypeIndexer, ObjectTypeProperty, FlowIntoType, FunctionType, ParameterizedFunctionType, PartialType, FunctionTypeParam, FunctionTypeRestParam, FunctionTypeReturn, GeneratorType, ExistentialType, AnyType, MixedType, EmptyType, NullableType, TupleType, UnionType, IntersectionType, VoidType, RefinementType, TypeParameterApplication } from './types';
|
4 |
|
5 | import { Declaration, TypeDeclaration, VarDeclaration, ModuleDeclaration, ModuleExportsDeclaration, ClassDeclaration, ExtendsDeclaration } from './declarations';
|
6 |
|
7 | import { TypeParametersSymbol } from './symbols';
|
8 |
|
9 | import TypeContext from './TypeContext';
|
10 |
|
11 | function defineProperty(name, value) {
|
12 | Object.defineProperty(globalContext, name, {
|
13 | value: value
|
14 | });
|
15 | }
|
16 |
|
17 | defineProperty('TypeParametersSymbol', TypeParametersSymbol);
|
18 | defineProperty('TypeContext', TypeContext);
|
19 | defineProperty('Type', Type);
|
20 | defineProperty('TypeBox', TypeBox);
|
21 | defineProperty('TypeParameter', TypeParameter);
|
22 | defineProperty('TypeReference', TypeReference);
|
23 | defineProperty('ParameterizedTypeAlias', ParameterizedTypeAlias);
|
24 | defineProperty('TypeAlias', TypeAlias);
|
25 | defineProperty('TypeConstructor', TypeConstructor);
|
26 | defineProperty('GenericType', GenericType);
|
27 | defineProperty('NullLiteralType', NullLiteralType);
|
28 | defineProperty('NumberType', NumberType);
|
29 | defineProperty('NumericLiteralType', NumericLiteralType);
|
30 | defineProperty('BooleanType', BooleanType);
|
31 | defineProperty('BooleanLiteralType', BooleanLiteralType);
|
32 | defineProperty('SymbolType', SymbolType);
|
33 | defineProperty('SymbolLiteralType', SymbolLiteralType);
|
34 | defineProperty('StringType', StringType);
|
35 | defineProperty('StringLiteralType', StringLiteralType);
|
36 | defineProperty('ArrayType', ArrayType);
|
37 | defineProperty('ObjectType', ObjectType);
|
38 | defineProperty('ObjectTypeCallProperty', ObjectTypeCallProperty);
|
39 | defineProperty('ObjectTypeIndexer', ObjectTypeIndexer);
|
40 | defineProperty('ObjectTypeProperty', ObjectTypeProperty);
|
41 | defineProperty('FunctionType', FunctionType);
|
42 | defineProperty('FunctionTypeParam', FunctionTypeParam);
|
43 | defineProperty('FunctionTypeRestParam', FunctionTypeRestParam);
|
44 | defineProperty('FunctionTypeReturn', FunctionTypeReturn);
|
45 | defineProperty('ParameterizedFunctionType', ParameterizedFunctionType);
|
46 | defineProperty('PartialType', PartialType);
|
47 | defineProperty('RefinementType', RefinementType);
|
48 | defineProperty('TypeParameterApplication', TypeParameterApplication);
|
49 | defineProperty('GeneratorType', GeneratorType);
|
50 | defineProperty('ExistentialType', ExistentialType);
|
51 | defineProperty('FlowIntoType', FlowIntoType);
|
52 | defineProperty('AnyType', AnyType);
|
53 | defineProperty('MixedType', MixedType);
|
54 | defineProperty('EmptyType', EmptyType);
|
55 | defineProperty('NullableType', NullableType);
|
56 | defineProperty('TupleType', TupleType);
|
57 | defineProperty('UnionType', UnionType);
|
58 | defineProperty('IntersectionType', IntersectionType);
|
59 | defineProperty('VoidType', VoidType);
|
60 | defineProperty('Declaration', Declaration);
|
61 | defineProperty('VarDeclaration', VarDeclaration);
|
62 | defineProperty('TypeDeclaration', TypeDeclaration);
|
63 | defineProperty('ModuleDeclaration', ModuleDeclaration);
|
64 | defineProperty('ModuleExportsDeclaration', ModuleExportsDeclaration);
|
65 | defineProperty('ClassDeclaration', ClassDeclaration);
|
66 | defineProperty('ExtendsDeclaration', ExtendsDeclaration);
|
67 |
|
68 | export default globalContext; |
\ | No newline at end of file |