Skip to content

Commit

Permalink
refactor: remove unnecessary type casting in generateComponent function
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Aug 18, 2024
1 parent a39b2be commit efba00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/language-core/lib/codegen/template/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function* generateComponent(
resolveRenameNewName: node.tag !== expectName ? camelizeComponentName : undefined,
resolveRenameEditText: getTagRenameApply(node.tag),
},
} as VueCodeInformation
}
);
yield `;`;
}
Expand All @@ -194,7 +194,7 @@ export function* generateComponent(
isAdditional: true,
onlyImport: true,
},
} as VueCodeInformation
}
);
yield `,`;
}
Expand Down

0 comments on commit efba00b

Please sign in to comment.