sindresorhus / get-stream

Get a stream as a string, Buffer, ArrayBuffer or array
MIT License
341 stars 33 forks source link

Fix TypeScript type for the `.buffer()` method #44

Closed SimenB closed 3 years ago

SimenB commented 3 years ago

From https://github.com/sindresorhus/get-stream/blob/831366e0b172411812e9ce797e4fbd83d28c8aeb/index.js#L59 encoding is always set to buffer