Skip to content

Commit 1933fac

Browse files
committed
We are no longer using the direction type parameter
1 parent 84558c3 commit 1933fac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# ArrayFixed
22

33
`ArrayFixed` is a fixed length sparse JavaScript array. The main advantage of a fixed length sparse array, is that we maintain a count along with the array length. Extending on the fixed length sparse array, we create a fixed length sparse array that is dense in one direction (left or right). The `ArrayFixedDense` ensures that the array is kept dense in one particular direction.
4-
5-
In order to lift the direction of `ArrayFixedDense` into the type system, we added `direction` boolean to the type. So you can set `ArrayFixedDense<*, true>` to ensure that we have a left dense array, or `ArrayFixedDense<*, false>` to ensure we have a right dense array.
6-
7-
However due to a flow problem, this doesn't quite work yet: https://github.com/facebook/flow/issues/5848

0 commit comments

Comments
 (0)