mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 11:46:08 -05:00
Improve references search and quick info on properties with type errors within nullable contextual types (#61383)
This commit is contained in:
committed by
GitHub
parent
6fd2874d0d
commit
2b2d6cebcb
@@ -3575,6 +3575,7 @@ function getSymbolAtLocationForQuickInfo(node: Node, checker: TypeChecker): Symb
|
||||
* @internal
|
||||
*/
|
||||
export function getPropertySymbolsFromContextualType(node: ObjectLiteralElementWithName, checker: TypeChecker, contextualType: Type, unionSymbolOk: boolean): readonly Symbol[] {
|
||||
contextualType = contextualType.getNonNullableType();
|
||||
const name = getNameFromPropertyName(node.name);
|
||||
if (!name) return emptyArray;
|
||||
if (!contextualType.isUnion()) {
|
||||
|
||||
Reference in New Issue
Block a user