Skip to content

Flow RecordOf<T> ignores T type  #1634

Open
@a-shtubov

Description

@a-shtubov

Flow: 0.84.0
Immutable: 4.0.0-rc.11

The following code doesn't produce an error.

// @flow
import { Record } from 'immutable';
import type { RecordOf, RecordFactory } from 'immutable';

type Foo = {| foo: string |};

const fooFactory: RecordFactory<Foo> = Record({ foo: 1, bar: 2 });
const foo: RecordOf<Foo> = fooFactory();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions