Skip to content

Commit

Permalink
Fix convertion of type query
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrishchenko committed Dec 25, 2024
1 parent ab37eb3 commit 3547a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter/plugins/convertTypeQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const convertTypeQuery = createSimplePlugin((node, context, render) => {

const resolvedType = typeScriptService?.resolveType(node)

if (!resolvedType || ts.isTypeQueryNode(node)) {
if (!resolvedType || ts.isTypeQueryNode(resolvedType)) {
return `Any /* ${typeScriptService?.printNode(node)} */`;
}

Expand Down

0 comments on commit 3547a39

Please sign in to comment.