Skip to content

Contextual typing checks property assignments for type annotation#43598

Merged
sandersn merged 1 commit into
masterfrom
check-property-assignments-for-type-annotation
Apr 26, 2021
Merged

Contextual typing checks property assignments for type annotation#43598
sandersn merged 1 commit into
masterfrom
check-property-assignments-for-type-annotation

Conversation

@sandersn
Copy link
Copy Markdown
Member

@sandersn sandersn commented Apr 8, 2021

Property assignments can have a type annotation in JS. This PR adds a check for it in contextual typing.

Fixes #43379

Property assignments can have a type annotation in JS. This PR adds a
check for it in contextual typing.

Fixes #43379
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Apr 8, 2021
@sandersn sandersn requested a review from andrewbranch April 24, 2021 00:04
@sandersn
Copy link
Copy Markdown
Member Author

@andrewbranch you just looked at contextual typing in JS object literals...mind taking a look at this change too?

@sandersn sandersn merged commit d5af89c into master Apr 26, 2021
@sandersn sandersn deleted the check-property-assignments-for-type-annotation branch April 26, 2021 16:19
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Object literal property assignment doesn't get contextual type from @type jsdoc

3 participants