Skip to content

Conversation

@sandersn
Copy link
Contributor

@sandersn sandersn commented Jan 21, 2023

Some event handlers got moved out of their custom type and into GlobalEventHandlersEventMap. This simplifies Editor.on/off overloads.

The new code won't succeed until tomorrow, but the test should pass both before and after.

Edit: codemirror is popular enough that it might be worthwhile creating a ts4.9 subfolder so fixes to codemirror types can be provided to users of non-current Typescript versions.

Edit: No substantive changes to the types in 1.5 years, which is exactly the DT support window. I'm going to skip creating a 4.9 copy for now.

See microsoft/TypeScript#52328

Some event handlers got moved out of their custom type and into
GlobalEventHandlersEventMap. This simplifies Editor.on/off overloads.

The new code won't succeed until tomorrow, but the test should pass both
before and after.

See microsoft/TypeScript#52328
@typescript-bot
Copy link
Contributor

typescript-bot commented Jan 21, 2023

@sandersn Thank you for submitting this PR!

This is a live comment which I will keep updated.

2 packages in this PR

Code Reviews

Because this PR edits multiple packages, it can be merged once it's reviewed by a DT maintainer.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 A DT maintainer needs to approve changes which affect more than one package

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 64011,
  "author": "sandersn",
  "headCommitOid": "f6487d7cdc8e9fe8c9fda200fa175c0876be5232",
  "mergeBaseOid": "d4ee2164bb9ad62636421e1bf1471e404d91d38d",
  "lastPushDate": "2023-01-23T16:18:55.000Z",
  "lastActivityDate": "2023-01-23T16:23:52.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "codemirror",
      "kind": "edit",
      "files": [
        {
          "path": "types/codemirror/codemirror-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/codemirror/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "mihailik",
        "nrbernard",
        "Pr1st0n",
        "rileymiller",
        "toddself",
        "ysulyma",
        "azoson",
        "kylesferrazza",
        "fityocsaba96",
        "koddsson",
        "ficristo"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    },
    {
      "name": "react-codemirror",
      "kind": "edit",
      "files": [
        {
          "path": "types/react-codemirror/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "velveret",
        "rudi-c"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 1399094127,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Jan 21, 2023
@typescript-bot
Copy link
Contributor

typescript-bot commented Jan 21, 2023

🔔 @mihailik @nrbernard @Pr1st0n @rileymiller @toddself @ysulyma @azoson @kylesferrazza @fityocsaba96 @koddsson @ficristo @velveret @rudi-c — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Jan 21, 2023
@typescript-bot
Copy link
Contributor

@sandersn The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@sandersn sandersn closed this Jan 23, 2023
@sandersn sandersn reopened this Jan 23, 2023
@typescript-bot typescript-bot added Edits multiple packages The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Jan 23, 2023
@typescript-bot
Copy link
Contributor

@sandersn The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Jan 23, 2023
@DangerBotOSS
Copy link

Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files.
The check for missing properties isn't always right, so take this list as advice, not a requirement.

codemirror (unpkg)

was missing the following properties:

  1. optionHandlers
  2. inputStyles

Generated by 🚫 dangerJS against f6487d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Edits multiple packages Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants