Skip to content

Commit 9409a58

Browse files
committed
ts 5.8 issue
1 parent c5141c4 commit 9409a58

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/kit/src/runtime/form-utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ export async function deserialize_binary_form(request) {
147147
throw deserialize_error('invalid Content-Length header');
148148
}
149149

150-
const reader = request.body.getReader();
150+
// TODO: remove this workaround once we upgrade to TS 6.0
151+
const reader = /** @type {ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>} */ (
152+
request.body.getReader()
153+
);
151154

152155
/** @type {Array<Promise<Uint8Array<ArrayBuffer> | undefined>>} */
153156
const chunks = [];

0 commit comments

Comments
 (0)