Closed EvanHahn closed 1 month ago
This fixes all the type errors in the tests for bitfield-rle. Some of the type errors were entirely test-only, but others required changes to the "real" code. Most notably, many Buffer types were changed to Uint8Array.
bitfield-rle
Buffer
Uint8Array
I redid this to limit source changes.
encodingLength was only used in tests and its tests had tricky type errors. I made encodingLength private and removed the tests.
encodingLength
This fixes all the type errors in the tests for
bitfield-rle
. Some of the type errors were entirely test-only, but others required changes to the "real" code. Most notably, manyBuffer
types were changed toUint8Array
.