dsherret / ts-nameof

nameof in TypeScript
MIT License
492 stars 23 forks source link

Allow $ in nameof #32

Closed Kukks closed 6 years ago

Kukks commented 6 years ago

VueJs utilizes a $ on some reserved view model keywords and using nameof with them causes the following error:

Error: Invalid character in nameof argument: $ -- if this should be a valid character then please log an issue. If you wish, you can manually edit config.js in this package to allow the character.

I'm thinking it should be globally allowed from the plugin itself

dsherret commented 6 years ago

Done. Thanks for reporting and I'm surprised I missed this.

Released in 1.0.1.