mapbox / mapbox/mapbox-gl-js

Missing property in the style's Function type definitions

Open
#8,125 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The `base` property is present in the [API docs](https://docs.mapbox.com/mapbox-gl-js/style-spec/#other-function), but is missing in the [type definition](https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/types.js#L33)

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

Start with src/style-spec/types.js at the referenced Function type definition and compare it with the API documentation for the other/function section. Update the definition to include the documented base property, then run the relevant style-spec type checks or tests; done means the property is represented without breaking existing definitions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.