Skip to content

Commit

Permalink
fix: remove deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Apr 28, 2024
1 parent 0fce453 commit 91ca342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/volar/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function getImportNames(
sourceFile.forEachChild((node) => {
if (
ts.isImportDeclaration(node) &&
node.assertClause?.elements.some(
node.attributes?.elements.some(
(el) =>
el.name.text === 'type' &&
ts.isStringLiteral(el.value) &&
Expand Down

0 comments on commit 91ca342

Please sign in to comment.