Skip to content
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

In JS, use JSDoc to specify a call's type arguments #8302

Open
Thaina opened this issue Apr 26, 2016 · 1 comment
Open

In JS, use JSDoc to specify a call's type arguments #8302

Thaina opened this issue Apr 26, 2016 · 1 comment
Labels
Domain: JavaScript The issue relates to JavaScript specifically Domain: JSDoc Relates to JSDoc parsing and type generation Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. Suggestion An idea for TypeScript

Comments

@Thaina
Copy link

Thaina commented Apr 26, 2016

In typescript we can specified template at function call

function A<T>(callBack:function(T):void) { }
A<{name:string}>(function(item) { /** item is {name:string} */ })

But I don't know how to force the type of its template when calling it from js file. And I can't find any clue. It seem like not possible so I want to make feature request if it don't have already

@mhegazy mhegazy added Suggestion An idea for TypeScript Salsa Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. labels Apr 28, 2016
@mhegazy mhegazy added the Domain: JSDoc Relates to JSDoc parsing and type generation label Dec 15, 2016
@mhegazy mhegazy changed the title JSDoc for override template Use JSDoc to specify actual type parameter Dec 15, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Dec 15, 2016

Related to #5158

@sandersn sandersn changed the title Use JSDoc to specify actual type parameter In JS, use JSDoc to specify a call's type arguments Aug 16, 2018
@weswigham weswigham added Domain: JavaScript The issue relates to JavaScript specifically and removed Salsa labels Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: JavaScript The issue relates to JavaScript specifically Domain: JSDoc Relates to JSDoc parsing and type generation Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants