mittwald / mittwald/api-client-js
Generated type for file uploads
Open
@mfal is already working on this.
Since Sep 4, 2026.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 0
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
When a route has only a file upload for the request, for example multipart/form-data, the type generated for that request is not really accurate.
Example
The route /v2/actions/detect-phishing-email on the mittwald API documentation has a multipart/form-data file upload, but the generated type of the data object in the request is { [p: string]: unknown } | undefined.
This means that a file that was uploaded through a file field or a file dropzone has to be typed as unkown:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.