Skip to content

🤖 User test baselines have changed#30937

Merged
sandersn merged 1 commit into
microsoft:masterfrom
typescript-bot:user-update-Microsoft-20190301
Apr 15, 2019
Merged

🤖 User test baselines have changed#30937
sandersn merged 1 commit into
microsoft:masterfrom
typescript-bot:user-update-Microsoft-20190301

Conversation

@typescript-bot
Copy link
Copy Markdown
Collaborator

Please review the diff and merge if no changes are unexpected.
You can view the build log here.

cc @weswigham @sandersn @RyanCavanaugh

@typescript-bot typescript-bot force-pushed the user-update-Microsoft-20190301 branch from 24f8823 to 0768134 Compare April 15, 2019 13:32
Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Could be an intended change or a bug. Haven't had time to bisect (or look over the recent changes).

Exit Code: 1
Standard output:
lib/Accessibility.js(118,15): error TS2503: Cannot find namespace 'Protocol'.
lib/Accessibility.js(310,7): error TS2322: Type 'string | number | boolean' is not assignable to type 'never'.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

node[userStringProperty] = properties.get(userStringProperty) :
    SerialisedAXNode[keyof SerialisedAXNode] <== number | string | boolean

where

keyof SerialisedAXNode : string | number | boolean | SerialisedAXNode[]

The difference is probably that now

SerialisedAXNode[keyof SerialisedAXNode] : never

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, this is an intended result of #30769 - since there's no generic tying userStringProperty to the result of properties.get(userStringProperty), we don't know they you're assigning the value corresponding to the selected key to the correct key'd member. Unfortunately, you need to write a subtype of Map's type to do that (otherwise Map.get has no method type parameter to be generic on).

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

So it sounds like we're good to merge then because this break isn't that bad.

@sandersn sandersn merged commit 72f6656 into microsoft:master Apr 15, 2019
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants