Skip to content

Commit 5166631

Browse files
author
Andy Hanson
committed
Update API (#24966)
1 parent c6997a9 commit 5166631

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,7 @@ declare namespace ts {
25662566
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
25672567
getPropertiesOfType(type: Type): Symbol[];
25682568
getPropertyOfType(type: Type, propertyName: string): Symbol | undefined;
2569+
getTypeOfPropertyOfType(type: Type, propertyName: string): Type | undefined;
25692570
getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined;
25702571
getSignaturesOfType(type: Type, kind: SignatureKind): ReadonlyArray<Signature>;
25712572
getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined;
@@ -2708,6 +2709,11 @@ declare namespace ts {
27082709
getSymbolCount(): number;
27092710
getTypeCount(): number;
27102711
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;
27112717
/**
27122718
* For a union, will include a property if it's defined in *any* of the member types.
27132719
* So for `{ a } | { b }`, this will include both `a` and `b`.

0 commit comments

Comments
 (0)