Skip to content

Commit e973b87

Browse files
committed
refactor: update property path structure in getReferenceSuggestions.ts
1 parent 06727b5 commit e973b87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/suggestion/getReferenceSuggestions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const extractObjectProperties = (
6363
if (properties && properties.length > 0) {
6464
properties.forEach(property => {
6565
const propType = checker.getTypeOfSymbolAtLocation(property, property.valueDeclaration!);
66-
const propName = property.getName() as ReferencePath;
67-
const newPath = [...currentPath, propName];
66+
const propName = property.getName();
67+
const newPath = [...currentPath, {path: propName}];
6868

6969
// Recursively extract nested properties
7070
results.push(...extractObjectProperties(propType, checker, expectedType, newPath));

0 commit comments

Comments
 (0)