Skip to content

Conversation

gfx
Copy link
Member

@gfx gfx commented May 31, 2019

In readme, decodeStream(stream: AsyncIterable<Uint8Array | ArrayLike<number>> | ReadableStream<Uint8Array | ArrayLike<number>>, options?: DecodeAsyncOptions): AsyncIterable<unknown> is too complex to read.

Because Uint8Array includes ArrayLike<number>, Uint8Array | ArrayLike<number> can be simplified to ArrayLike<number>.

@gfx gfx requested a review from sergeyzenchenko May 31, 2019 12:48
@gfx
Copy link
Member Author

gfx commented May 31, 2019

@sergeyzenchenko can you review it please?

@gfx gfx added the Docs label May 31, 2019
@gfx gfx changed the title simplify decode() arg; ArrayLike<number> includes Uint8Array, anyway simplify type of decode()'s first arg; ArrayLike<number> includes Uint8Array, anyway May 31, 2019
@codecov-io
Copy link

codecov-io commented May 31, 2019

Codecov Report

Merging #51 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
- Coverage   96.57%   96.57%   -0.01%     
==========================================
  Files          15       15              
  Lines         906      905       -1     
  Branches      183      183              
==========================================
- Hits          875      874       -1     
  Misses         31       31
Impacted Files Coverage Δ
src/decodeAsync.ts 100% <ø> (ø) ⬆️
src/decode.ts 100% <100%> (ø) ⬆️
src/Decoder.ts 97.4% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26bd3dc...96e1152. Read the comment docs.

Copy link
Collaborator

@sergeyzenchenko sergeyzenchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, now it's much better to read

@gfx gfx merged commit 62b11f1 into master May 31, 2019
@gfx gfx deleted the simplify_decode_arg branch May 31, 2019 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants