Replace toString with type assertion

This commit is contained in:
Bill Thornton
2025-03-21 12:55:12 -04:00
parent 3adb945b67
commit c4dc2c5a70
+1 -1
View File
@@ -124,7 +124,7 @@ export const Component = () => {
reader.onload = () => {
if (!reader.result) return;
const dataUrl = reader.result.toString();
const dataUrl = reader.result as string; // readAsDataURL produces a string
// FIXME: TypeScript SDK thinks body should be a File but in reality it is a Base64 string
const body = dataUrl.split(',')[1] as never;
getImageApi(api)