Skip to content

[mapbox__mapbox-gl-geocoder] Add MarkerOptions to marker option type#75293

Open
tibotiber wants to merge 1 commit into
DefinitelyTyped:masterfrom
tibotiber:mapbox-geocoder-marker-options
Open

[mapbox__mapbox-gl-geocoder] Add MarkerOptions to marker option type#75293
tibotiber wants to merge 1 commit into
DefinitelyTyped:masterfrom
tibotiber:mapbox-geocoder-marker-options

Conversation

@tibotiber

Copy link
Copy Markdown

The marker option accepts a MarkerOptions object at runtime (passed directly to new mapboxgl.Marker(options)), but the typedef only allows boolean | Marker. Adding MarkerOptions removes the need for @ts-ignore at call sites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@typescript-automation

typescript-automation Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@tibotiber 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 or DT maintainers

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": 75293,
  "author": "tibotiber",
  "headCommitOid": "62b670b7238f94841c0d6fdd9cdbf321c4d37e44",
  "mergeBaseOid": "ba1ccec41e07ce7972674b33daa9b0a327863597",
  "lastPushDate": "2026-07-21T05:30:29.000Z",
  "lastActivityDate": "2026-07-21T05:30:29.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "mapbox__mapbox-gl-geocoder",
      "kind": "edit",
      "files": [
        {
          "path": "types/mapbox__mapbox-gl-geocoder/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/mapbox__mapbox-gl-geocoder/mapbox__mapbox-gl-geocoder-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "Nosfit",
        "dmytro-gokun"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 5030495054,
  "ciResult": "pass"
}

@typescript-automation typescript-automation Bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Jul 21, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

🔔 @Nosfit @dmytro-gokun — 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-automation typescript-automation Bot moved this to Waiting for Code Reviews in Pull Request Status Board Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

1 participant