Skip to content

馃 User test baselines have changed - #26712

Closed
TypeScript Bot (typescript-bot) wants to merge 1 commit into
microsoft:masterfrom
typescript-bot:user-update-20180702
Closed

TypeScript Bot (typescript-bot) wants to merge 1 commit into
microsoft:masterfrom
typescript-bot:user-update-20180702

Conversation

@typescript-bot

Copy link
Copy Markdown
Contributor

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

cc Wesley Wigham (@weswigham) Nathan Shively-Sanders (@sandersn) Ryan Cavanaugh (@RyanCavanaugh)

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.

Anders Hejlsberg (@ahejlsberg)
Looks like #26698 incorrectly removed a couple of good errors in unions. Specifically, chrome-devtools-frontend has code equivalent to this:

class C {
  constructor(descriptors: (string | symbol | string[])[][]) {
    for (var i = 0; i < descriptors.length; ++i) {
      this[descriptors[i][1]] = // ...... more code here
  }
}

This previously gave the error "string[] cannot be used as an index type", which seems correct to me.

Index signature is missing in type '{}'.
node_modules/chrome-devtools-frontend/front_end/host/InspectorFrontendHost.js(407,19): error TS2694: Namespace 'Adb' has no exported member 'Config'.
node_modules/chrome-devtools-frontend/front_end/host/InspectorFrontendHost.js(445,48): error TS2694: Namespace 'InspectorFrontendHostAPI' has no exported member 'ContextMenuDescriptor'.
node_modules/chrome-devtools-frontend/front_end/host/InspectorFrontendHost.js(471,12): error TS2538: Type 'string[]' cannot be used as an index type.

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.

Looks like a result of #26698, possibly incorrect.

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.

2 participants