rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.36k stars 194 forks source link

Concat immutable array in typescript #214

Open ricksecretin opened 7 years ago

ricksecretin commented 7 years ago

How can I concat 2 arrays or push an item to an immutable array with typescript?

I tried with: Immutable.from([1, 2]).concat([2]) but I get the following error: "Property 'concat' does not exist on type ImmutableArray"