Reputation: 4048
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
Reputation: 276199
Which interface is implemented by immutableObj?
Sadly it returns an any
. So it is completely unchecked.
Upvotes: 1