When I compile my code, I encounter this console error:
The 'rawBody' property does not exist on the 'Request' type.
This error occurs specifically on this line of code:
busboy.end(req.rawBody);
According to these docs, the 'rawBody' should be present. However, upon switching to TypeScript, the error arises.
Although the code still functions properly when served locally, it is important for me to understand and rectify these type errors. If I were to simply ignore them, why use TypeScript at all? I might as well stick with plain JavaScript.