I'm attempting to send binary data in a POST request using XHR and TypeScript. When I try
new Blob (myData, {type:"text/plain"})
, I encounter the following error:
Error: Argument of type '{ type: string; }' is not assignable to parameter of type 'string'.
Any suggestions on how to solve this issue?