Commit 5166631 Andy Hanson
committed
1 parent c6997a9 commit 5166631 Copy full SHA for 5166631
File tree 1 file changed +6
-0
lines changed
tests/baselines/reference/api
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2566,6 +2566,7 @@ declare namespace ts {
2566
2566
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
2567
2567
getPropertiesOfType(type: Type): Symbol[];
2568
2568
getPropertyOfType(type: Type, propertyName: string): Symbol | undefined;
2569
+ getTypeOfPropertyOfType(type: Type, propertyName: string): Type | undefined;
2569
2570
getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined;
2570
2571
getSignaturesOfType(type: Type, kind: SignatureKind): ReadonlyArray<Signature>;
2571
2572
getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined;
@@ -2708,6 +2709,11 @@ declare namespace ts {
2708
2709
getSymbolCount(): number;
2709
2710
getTypeCount(): number;
2710
2711
isArrayLikeType(type: Type): boolean;
2712
+ /**
2713
+ * True if `contextualType` should not be considered for completions because
2714
+ * e.g. it specifies `kind: "a"` and obj has `kind: "b"`.
2715
+ */
2716
+ isTypeInvalidDueToUnionDiscriminant(contextualType: Type, obj: ObjectLiteralExpression): boolean;
2711
2717
/**
2712
2718
* For a union, will include a property if it's defined in *any* of the member types.
2713
2719
* So for `{ a } | { b }`, this will include both `a` and `b`.
You can’t perform that action at this time.
0 commit comments