Closed ImLunaHey closed 1 year ago
Actually from checking it seems body
is a readable stream? 🤔
You're right, I believe request.body is a readable stream and the typings might be wrong for this, I'll check.
Note: if you're looking for the body to be parsed as JSON, you should use:
const data = await request.json();
Done. This is now fixed in v0.8.0
This should really be typed as
unknown
instead ofany
asany
disables type checking.