Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 24, 2018

No description provided.

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
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.

1 participant