-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support nameof.full<Array<T>>() to "Array<T>" #99
Comments
Need to think about this more, but right now the only way to do it is to do:
The reason this isn't done by default is because c# doesn't do this with Basically whatever solution is chosen need to ensure there's still a way to not include type arguments. |
Thank you for the fast response, actually your solution will work but with some improvement (because Array is generic interface it require parameter to be passed like: In anyway it is not elegant way to make it work, so hope you will add new feature, it will help a lot. |
No problem! Yeah, maybe something like Ooops.. you're right. I messed up that example in other ways too. Should be: `${nameof<Array<void>>()}<${nameof<MyInterface>()}>` |
Yes please, it would be great, and will save tons of time and help to write elegant ts code. Thank you! |
In documentation:
nameof.full<Array<MyInterface>>()
;Transforms to:
"Array";
How can i get it work and transform into:
"
Array<MyInterface>
"?
The text was updated successfully, but these errors were encountered: