Skip to content

[dygraphs] Fix granularity types not being defined inside Granularity object - #75743

Open
HDeslaurier wants to merge 2 commits into
DefinitelyTyped:masterfrom
HDeslaurier:master
Open

HDeslaurier wants to merge 2 commits into
DefinitelyTyped:masterfrom
HDeslaurier:master

Conversation

@HDeslaurier

Copy link
Copy Markdown

The granularities exist inside a Granularity object but are typed as top level numbers. They should be typed as numbers inside the static Granularity object. See https://github.com/danvk/dygraphs/blob/master/src/dygraph-tickers.js#L232 for the relevant code in dygraphs.

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the package.json.

@typescript-automation

typescript-automation Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

@HDeslaurier Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

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

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Most recent commit is approved by type definition owners, DT maintainers or others

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": 75743,
  "author": "HDeslaurier",
  "headCommitOid": "c0e084543ddf360d23e45ea340760e26465d7674",
  "mergeBaseOid": "73df926871e11d055f6a97d583eb17e220a8c819",
  "lastPushDate": "2026-10-07T13:52:44.000Z",
  "lastActivityDate": "2026-10-07T13:52:44.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "dygraphs",
      "version": "2.2",
      "kind": "edit",
      "files": [
        {
          "path": "types/dygraphs/dygraphs-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/dygraphs/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/dygraphs/package.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "danvk",
        "martin-badin"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 6039443524,
  "ciResult": "pass"
}

@typescript-automation

Copy link
Copy Markdown
Contributor

🔔 @danvk @martin-badin — 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.

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

Labels

None yet

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

1 participant