payload
payload copied to clipboard
fix: add missing beforeInput and afterInput properties to UploadAdmin type
What?
This PR adds the missing beforeInput and afterInput properties to the UploadAdmin type so that the type definition reflects the actual supported admin props for upload fields.
Why?
Although upload fields already support beforeInput and afterInput in practice, these props are currently not included in the UploadAdmin TypeScript type. This leads to type errors or the need for type assertions when trying to use them. Aligning the type definition with the existing runtime behavior improves DX and keeps the admin field types consistent, similar to what was done for RichTextField in #12889.
How?
Extended the UploadAdmin type to include the beforeInput and afterInput properties.