Skip to content

Conversation

@jhb-dev
Copy link
Contributor

@jhb-dev jhb-dev commented Dec 1, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant