Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert mapbox plugin #13390

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jknohr
Copy link

@jknohr jknohr commented Jan 25, 2025

Launch Checklist

  • Make sure the PR title is descriptive and preferably reflects the change from the user's perspective.
  • Add additional detail and context in the PR description (with screenshots/videos if there are visual changes).
  • Manually test the debug page.
  • Write tests for all new functionality and make sure the CI checks pass.
  • Document any changes to public APIs.
  • Post benchmark scores if the change could affect performance.
  • Tag @mapbox/map-design-team @mapbox/static-apis if this PR includes style spec API or visual changes.
  • Tag @mapbox/gl-native if this PR includes shader changes or needs a native port.

Add explicit types for variables, parameters, and return values in TypeScript files.

* **src/data/dem_data.ts**
  - Add explicit types for variables, parameters, and return values.
  - Include interfaces for Mapbox-specific objects or data structures.
  - Modify constructor and methods to use explicit types.

* **src/data/evaluation_feature.ts**
  - Update the type of `id` property in `EvaluationFeature` to `number | string | undefined`.

* **src/data/feature_index.ts**
  - Add explicit return type `void` for `insert` method.
  - Add explicit types for variables in `query` method.
@jknohr jknohr requested a review from a team as a code owner January 25, 2025 12:24
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@underoot
Copy link
Member

Hey, @jknohr thank you for your contribution! Could you explain the reasoning behind these changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants