Skip to content

Commit 126a9c3

Browse files
committed
feat: update getNodeSuggestions to directly access variant for improved type handling
1 parent e1dd64c commit 126a9c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/suggestion/getNodeSuggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const getNodeSuggestions = (
1414

1515
let functionToSuggest = functions
1616

17-
const typeVariant = type ? getTypeVariant(type, dataTypes) : null;
17+
const typeVariant = type ? getTypeVariant(type, dataTypes)[0].variant : null;
1818

1919
if (type && functions && typeVariant !== DataTypeVariant.NODE) {
2020
function getGenericsCount(input: string): number {

0 commit comments

Comments
 (0)