dsherret / ts-nameof

nameof in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ensure nameof of numeric literals works properly

dsherret opened this issue · comments

Pretty sure this won't work properly right now since it converts to a number then back to a string:

nameof(5646.64);
nameof(0o10);

// should output
"5646.64"
"0o10"

Not that anyone would be doing this....