facebook / facebook/flow

New type errors from Immutable.js after upgrading to Flow v0.59

Open
#5,340 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I started getting the following error from immutable.js type definitions after upgrading to Flow version 0.59.0. I'm using version 3.8.1 of Immutable.js, and this section had never thrown an error before.

```
Error: node_modules/immutable/dist/immutable.js.flow:399
399: static of(...values: T[]): SetSeq;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. This type is incompatible with
380: static of(...values: T[]): IndexedSeq;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type
This parameter is incompatible:
399: static of(...values: T[]): SetSeq;
^^^^^^^^^ SetSeq. This type is incompatible with
380: static of(...values: T[]): IndexedSeq;
^^^^^^^^^^^^^ IndexedSeq
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.