TypeScript has no nameof operator. you have to use a library:
IRCraziestTaxi/ts-simple-nameof
nameof(MyClassOrType);