UNPKG

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