I’m building a function that needs to update one field of an object at a time. this object is defined through an interface T. This should be the type signature of this function: This generates the error: ‘key’ refers to a value, but it is being used as a type here. Did you mean ‘typeof key’?. IMO I did not