Skip to content

Add a function return type for typescript snippets.#39133

Closed
Heatwave wants to merge 1 commit intomicrosoft:masterfrom
Heatwave:master
Closed

Add a function return type for typescript snippets.#39133
Heatwave wants to merge 1 commit intomicrosoft:masterfrom
Heatwave:master

Conversation

@Heatwave
Copy link
Copy Markdown

I think it should be a best practice for the TypeScript that to always specify the function return type. So I add this snippet. Thanks.

@jrieken jrieken assigned mjbvz and unassigned jrieken Nov 27, 2017
@mjbvz
Copy link
Copy Markdown
Collaborator

mjbvz commented Nov 27, 2017

TypeScript can correctly infer the return type in the majority of cases and I'm generally hesitant to add something to snippets that some users would end up deleting. This needs some more feedback. Can you please open an issue so we can gauge interest in this change

@mjbvz
Copy link
Copy Markdown
Collaborator

mjbvz commented Nov 29, 2017

Closing until we get more feedback on #39231

@mjbvz mjbvz closed this Nov 29, 2017
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants