Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Contextual typing checks property assignments for type annotation#43598

Merged
sandersn merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
check-property-assignments-for-type-annotationmicrosoft/TypeScript:check-property-assignments-for-type-annotationCopy head branch name to clipboard
Apr 26, 2021
Merged

Contextual typing checks property assignments for type annotation#43598
sandersn merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
check-property-assignments-for-type-annotationmicrosoft/TypeScript:check-property-assignments-for-type-annotationCopy head branch name to clipboard

Conversation

@sandersn

@sandersn sandersn commented Apr 8, 2021

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.