Repository navigation
feat: Support Content Types other than JSON (FormData, File, Blob, Uint8Array) - #5613
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
β¦nt and lazy loading
| * When expecting a supported octet type to be passed from the frontend, this parser may be used to validate the type for your procedure | ||
| */ | ||
| export function parseOctetInput< | ||
| TInput extends File | Blob | Uint8Array, |
There was a problem hiding this comment.
| TInput extends File | Blob | Uint8Array, | |
| TInput extends Blob | Uint8Array, |
There was a problem hiding this comment.
Hm this one's trickier, thing is while the TS type is on the backend, it propagates to the frontend's types and is essential if you want to send a file.
Should we do a little ponyfill somehow? Not sure how to approach that
| type CreateContextCallback, | ||
| type WrapCreateContext, |
There was a problem hiding this comment.
Do these need to be exported?
if so, smurf them π
There was a problem hiding this comment.
Yes they do, I was getting the usual portability error on the frontend
|
This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
Prototyping a simplified Content Types system with support for two families of types:
π― Changes
What changes are made in this PR? Is it a feature or a bug fix?
β Checklist