You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I get TypeScript error Type 'ReadStream' is not assignable to type 'string | Buffer | ReadableStream<any> | undefined'. when I try the example code in Usage Docs. It works perfectly when I cast createReadStream's return value to any.
Describe the bug
I get TypeScript error
Type 'ReadStream' is not assignable to type 'string | Buffer | ReadableStream<any> | undefined'.
when I try the example code in Usage Docs. It works perfectly when I cast createReadStream's return value to any.To Reproduce
Steps to reproduce the behavior:
const response = await client.upload({ image: createReadStream('/home/kai/dank-meme.jpg'), type: 'stream', });
Expected behavior
It should not give a TypeScript error.
Environment:
The text was updated successfully, but these errors were encountered: