jsx/JSX

widen map literal type with elements

Closed this issue · 1 comments

The type inferrer should also deduce the type of a literal from the calling method type even if it contains more than one elements.

class Foo {
    function constructor(options : Map.<variant>);
}

new Foo({ a : true, b : false });

👍