Limit "files" type allowed in allowedTypes

if I want to allow uploads of images and pdfs only, I have to choose images and files for allowedTypes which means user can upload all kind of zip, pptx, etc. files.

it would be great if there were a way to customise that to file extension level. something like this:

allowedTypes: [
   "images",
   ".pdf",
]