Jerald
Jerald

Reputation: 4048

Immutable js object typescript interface

I have a JS object with deeply nested values:

let IObj = {
    a: {
        b: string
    };
    d: string;
};

let obj: IObj  = {
  a: {
    b: 'c'
  },
  d: 'e'
}

I want to make it immutable:

let immutableObj = Immutable.fromJS(obj);

Which interface is implemented by immutableObj?

Upvotes: 1

Views: 486

Answers (1)

basarat
basarat

Reputation: 276199

Which interface is implemented by immutableObj?

Sadly it returns an any. So it is completely unchecked.

Source

https://github.com/facebook/immutable-js/blob/68d1b90b3343da918badb70bfd998724d2a6be99/dist/immutable.d.ts#L86-L89

Upvotes: 1

Related Questions