Why keyof Record wont actually give the keys of the record ?
I have this exemple :
So based on what i describe with type i would have hope that descriptionsKeys would get auto completion base on the description the user give but it doesn't
The type of descriptionKeys is Record<string, string> and not Record<"test" , string> and if i had more keys to desc i would hope to get these keys to in the Record. Any idea of where i m wrong ?
So based on what i describe with type i would have hope that descriptionsKeys would get auto completion base on the description the user give but it doesn't
The type of descriptionKeys is Record<string, string> and not Record<"test" , string> and if i had more keys to desc i would hope to get these keys to in the Record. Any idea of where i m wrong ?