Closed
Description
What happened
Record classes are not correctly recognized as classes. typeof
, extending and nominal typing doesn't work correctly and no constructor is found.
How to reproduce
/* @flow */
import { Record } from 'immutable';
const Class = Record({ a: 'asd', b: 123 });
const val = new Class(); // NOPE, no constructor found in RecordClass
class AnotherClass extends Class {
// NOPE cannot extend
}
Fixed in #1193
Metadata
Metadata
Assignees
Labels
No labels