PopupOptions missing attribute
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I notice that the @types/mapbox-gl/index.d.ts doesn't have all options in the interface with makes me impossible to build.
I actually add "maxWidth?: string" to the interface "PopupOptions" can you add the options, https://docs.mapbox.com/mapbox-gl-js/api/#popup, in your interface.
I cant update the interface for everyone, its in node_module
**mapbox-gl-js version**: 0.51
**browser**:chrome
### Expected Behavior
I want the maxWidth options in the interface PopupOptions
### Actual Behavior
Doesn't have maxWidth options in PopupOptions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect @types/mapbox-gl/index.d.ts and locate the PopupOptions interface. Compare it with the popup options listed in the linked Mapbox documentation, including maxWidth, then verify that the updated declarations compile and expose the documented options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100