How to pass an object of immutable type to a function as an argument
interface ImmutableObject<T> {
get<K extends keyof T>(name: K): T[K],
set<S>(o: S): Immutable<T & S>,
"value1": string,
}
function(values: ImmutableObject) {
//.. doo stuff
}
I'm getting an error
'ImmutableObject' requires 1 type argument(s).