mapbox / mapbox/mapbox-gl-js

Update JSDoc for `setFeatureState` and `removeFeatureState`

Open Beginner friendly
#13,523 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs :scroll:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

The documentation for setFeatureState incorrectly states that the first argument 'feature' is an Object with keys 'id', 'source', and 'sourceLayer'. It actually should be one of FeatureSelector | GeoJSONFeature | TargetFeature. Similarly, removeFeatureState documentation needs to be updated to reflect the correct argument types.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the TypeScript source for the JSDoc attached to setFeatureState and removeFeatureState. Update the documented first-argument types to FeatureSelector | GeoJSONFeature | TargetFeature, then run the repository's relevant type or documentation checks to confirm both API descriptions are corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.