"Reflection and nameof() in C# seems OK" - please add examples of working and not working as expected cases. I can imagine what you might expect and how it works with
nameof
, but I have no idea what "reflection" means. Explaining keyof
would be also of help, one doesn't need to be expert in TypeScript if he gets requirements right, otherwise you are limiting your question to require expert or somehow who has interest/time to find it out himself.