Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typecheck vue components #1721

Merged
merged 4 commits into from
Nov 28, 2024
Merged

Typecheck vue components #1721

merged 4 commits into from
Nov 28, 2024

Conversation

huchenlei
Copy link
Member

@huchenlei huchenlei commented Nov 27, 2024

Add vue-tsc to perform typecheck on vue components.

This PR also fixes various existing type issues in Vue components.

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/unplugin-icons@0.19.3, npm/unplugin-vue-components@0.27.4, npm/vite-plugin-static-copy@1.0.6, npm/vite@5.4.6

View full report↗︎

@@ -75,7 +75,7 @@ const props = defineProps<{
download: ElectronDownload
}>()

const getDownloadLabel = (savePath: string, filename: string) => {
const getDownloadLabel = (savePath: string) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused param.

@@ -95,7 +95,6 @@ const handleRemoveDownload = () => {
state.downloads = state.downloads.filter(
({ url }) => url !== props.download.url
)
state.hasChanged = true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write to undeclared field.

@huchenlei huchenlei merged commit 88a4217 into main Nov 28, 2024
9 checks passed
@huchenlei huchenlei deleted the vue_ts branch November 28, 2024 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant