I've been reading several similar topics but they all about some particular cases and i get this error in a simpliest posiible case. What is generally point of this error and how to solve it?
type SomeInterface = {
prop1: number
prop2: boolean
}
const testFn = (obj: SomeInterface, key: keyof SomeInterface, value: any) => {
obj[key] = value
}