Parameters<> does not support optional params #9125
Labels
bug
Typing: completeness
No false positives (type checker claims that there are some errors in the correct program)
Cannot call
g
because rest array [1] has 1 element but tuple type [2] has 2 elements. [invalid-tuple-arity]Flow version: master
Expected behavior
Type is tuple with optional arity
Actual behavior
Tuple is fixed length
Flow
typescript
The text was updated successfully, but these errors were encountered: