Skip to content

Conversation

@owahltinez
Copy link

When calling getContentsAsString(), function should always return a string type. If the buffer is empty, return value should be an empty string. This matches the type definitions at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/stream-buffers/index.d.ts

Change return short-circuit from `false` to empty string or empty buffer.
When calling getContentsAsString(), function should always return a string type. If the buffer is empty, return value should be an empty string. This matches the type definitions at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/stream-buffers/index.d.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant