Skip to content

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