dsherret / ts-nameof

nameof in TypeScript
MIT License
493 stars 23 forks source link

Support indexed access type #102

Open dsherret opened 4 years ago

dsherret commented 4 years ago

Should support something like this:

nameof<TypeScriptConfiguration["ignoreNodeCommentText"]>();

Current workaround:

nameof<TypeScriptConfiguration>(c => c["ignoreNodeCommentText"]);