Skip to content

Proposal: preserve parameterized types #13067

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

Closed
snytkine opened this issue Dec 20, 2016 · 1 comment
Closed

Proposal: preserve parameterized types #13067

snytkine opened this issue Dec 20, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@snytkine
Copy link

snytkine commented Dec 20, 2016

Would it be possible to preserve parameterized metadata?

For a code like this one

class UserService {

@service 
getUser(id:number):Promise<User>

}

It's currently possible to get the value of design:returntype using reflect-metadata but the value is limited to Promise prototype

It would be very helpful to also somehow preserve the type of Promise as well. This would be very helpful for writing a library that generates documentation from code, possibly a swagger file from inspecting signatures of controllers or generates schema from a class.

@DanielRosenwasser
Copy link
Member

Closing as a duplicate of #3015.

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Dec 20, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants