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

Fix QUploader props/events types regarding files types #17605

Closed
yusufkandemir opened this issue Oct 29, 2024 Discussed in #17604 · 0 comments · Fixed by #17624
Closed

Fix QUploader props/events types regarding files types #17605

yusufkandemir opened this issue Oct 29, 2024 Discussed in #17604 · 0 comments · Fixed by #17624
Assignees
Labels
area/typescript bug/2-confirmed We have reproduce the problem and confirmed that this is a bug. kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@yusufkandemir
Copy link
Member

Discussed in #17604

Originally posted by MohMehrnia October 29, 2024
i used this code check check file type:

but in typescript and tsc-vue show me error

const checkFileType = (files: []) => {
  return files.filter((file: { type: any; }) => file.type === 'video/mp4');
};

how do convert to typescript

@yusufkandemir yusufkandemir self-assigned this Oct 29, 2024
@yusufkandemir yusufkandemir added kind/bug 🐞 area/typescript bug/2-confirmed We have reproduce the problem and confirmed that this is a bug. Qv2 🔝 Quasar v2 issues labels Oct 29, 2024
rstoenescu pushed a commit that referenced this issue Nov 6, 2024
…17624)

* fix(ui): fix filter prop type for q-upload and q-file

* fix(ui): fix QFile selected slot type

* feat(ui): improve addFiles method type for q-upload and q-file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/typescript bug/2-confirmed We have reproduce the problem and confirmed that this is a bug. kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant