We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5141c4 commit 9409a58Copy full SHA for 9409a58
1 file changed
packages/kit/src/runtime/form-utils.js
@@ -147,7 +147,10 @@ export async function deserialize_binary_form(request) {
147
throw deserialize_error('invalid Content-Length header');
148
}
149
150
- const reader = request.body.getReader();
+ // TODO: remove this workaround once we upgrade to TS 6.0
151
+ const reader = /** @type {ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>} */ (
152
+ request.body.getReader()
153
+ );
154
155
/** @type {Array<Promise<Uint8Array<ArrayBuffer> | undefined>>} */
156
const chunks = [];
0 commit comments