Skip to content

Remove unused property ParameterInference#typeNode #28115

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

Merged
1 commit merged into from
Oct 26, 2018
Merged

Remove unused property ParameterInference#typeNode #28115

1 commit merged into from
Oct 26, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 24, 2018

No description provided.

@@ -309,7 +308,7 @@ namespace ts.codefix {
}
const isConstructor = declaration.kind === SyntaxKind.Constructor;
const callContexts = isConstructor ? usageContext.constructContexts : usageContext.callContexts;
return callContexts && declaration.parameters.map((parameter, parameterIndex) => {
return callContexts && declaration.parameters.map((parameter, parameterIndex): ParameterInference => {
Copy link
Author

@ghost ghost Oct 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return types don't get a contextual type. (Is there an issue for that?) This made it look like isOptional was unused. Currently it's write-only but that should change in #27978.

@ghost ghost requested a review from sandersn October 24, 2018 22:28
@ghost ghost merged commit 77d8e15 into master Oct 26, 2018
@ghost ghost deleted the rm_typeNode branch October 26, 2018 21:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant