Which type of value in the object as parameter of function. Why do not have the compilation errors?
I have gotten the next bunch of code. const func: ( newState: { newState: number }) => void = ({ newState: newState }) => { console.log(newState); } For me, particularly interesting is the ({ newState: newState }) how is it work? Why can I write newState: newState in this situation, and no compilation errors? >Solution… Read More Which type of value in the object as parameter of function. Why do not have the compilation errors?