|
422 | 422 | LastBinaryOperator = CaretEqualsToken, |
423 | 423 | FirstNode = QualifiedName, |
424 | 424 | FirstJSDocNode = JSDocTypeExpression, |
425 | | - LastJSDocNode = JSDocLiteralType, |
| 425 | + LastJSDocNode = JSDocNeverKeyword, |
426 | 426 | FirstJSDocTagNode = JSDocComment, |
427 | 427 | LastJSDocTagNode = JSDocNeverKeyword |
428 | 428 | } |
|
2363 | 2363 | getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo; |
2364 | 2364 | getSignaturesOfType(type: Type, kind: SignatureKind): Signature[]; |
2365 | 2365 | getIndexTypeOfType(type: Type, kind: IndexKind): Type; |
2366 | | - getBaseTypes(type: InterfaceType): ObjectType[]; |
| 2366 | + getBaseTypes(type: InterfaceType): BaseType[]; |
2367 | 2367 | getReturnTypeOfSignature(signature: Signature): Type; |
2368 | 2368 | /** |
2369 | 2369 | * Gets the type of a parameter at a given position in a signature. |
|
2718 | 2718 | containingType?: UnionOrIntersectionType; // Containing union or intersection type for synthetic property |
2719 | 2719 | leftSpread?: Symbol; // Left source for synthetic spread property |
2720 | 2720 | rightSpread?: Symbol; // Right source for synthetic spread property |
| 2721 | + mappedTypeOrigin?: Symbol; // For a property on a mapped type, points back to the orignal 'T' from 'keyof T'. |
2721 | 2722 | hasNonUniformType?: boolean; // True if constituents have non-uniform types |
2722 | 2723 | isPartial?: boolean; // True if syntheric property of union type occurs in some but not all constituents |
2723 | 2724 | isDiscriminantProperty?: boolean; // True if discriminant synthetic property |
|
2918 | 2919 | /* @internal */ |
2919 | 2920 | resolvedBaseConstructorType?: Type; // Resolved base constructor type of class |
2920 | 2921 | /* @internal */ |
2921 | | - resolvedBaseTypes: ObjectType[]; // Resolved base types |
| 2922 | + resolvedBaseTypes: BaseType[]; // Resolved base types |
2922 | 2923 | } |
2923 | 2924 |
|
| 2925 | + // Object type or intersection of object types |
| 2926 | + export type BaseType = ObjectType | IntersectionType; |
| 2927 | + |
2924 | 2928 | export interface InterfaceTypeWithDeclaredMembers extends InterfaceType { |
2925 | 2929 | declaredProperties: Symbol[]; // Declared members |
2926 | 2930 | declaredCallSignatures: Signature[]; // Declared call signatures |
|
2953 | 2957 | export interface UnionOrIntersectionType extends Type { |
2954 | 2958 | types: Type[]; // Constituent types |
2955 | 2959 | /* @internal */ |
2956 | | - resolvedProperties: SymbolTable; // Cache of resolved properties |
| 2960 | + propertyCache: SymbolTable; // Cache of resolved properties |
| 2961 | + /* @internal */ |
| 2962 | + resolvedProperties: Symbol[]; |
2957 | 2963 | /* @internal */ |
2958 | 2964 | resolvedIndexType: IndexType; |
2959 | 2965 | /* @internal */ |
|
2964 | 2970 |
|
2965 | 2971 | export interface UnionType extends UnionOrIntersectionType { } |
2966 | 2972 |
|
2967 | | - export interface IntersectionType extends UnionOrIntersectionType { } |
| 2973 | + export interface IntersectionType extends UnionOrIntersectionType { |
| 2974 | + /* @internal */ |
| 2975 | + resolvedApparentType: Type; |
| 2976 | + } |
2968 | 2977 |
|
2969 | 2978 | export type StructuredType = ObjectType | UnionType | IntersectionType; |
2970 | 2979 |
|
|
3298 | 3307 | export const enum JsxEmit { |
3299 | 3308 | None = 0, |
3300 | 3309 | Preserve = 1, |
3301 | | - React = 2 |
| 3310 | + React = 2, |
| 3311 | + ReactNative = 3 |
3302 | 3312 | } |
3303 | 3313 |
|
3304 | 3314 | export const enum NewLineKind { |
|
0 commit comments