dsherret / ts-nameof

nameof in TypeScript
MIT License
492 stars 23 forks source link

Ensure nameof of numeric literals works properly #80

Open dsherret opened 4 years ago

dsherret commented 4 years ago

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....