observablehq / observablehq/plot
Export types expected by the geo mark
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
Would it be possible to export the type expected by the geo mark?
This would be helpful when working with TypeScript.
From what I understand, we currently need to install d3-geo to access the GeoPermissible type. If this type were exported directly from plot, explicitly installing d3-geo wouldn't be necessary.
Thank you!
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
Start by locating the geo mark's TypeScript type definitions and the GeoPermissible type currently obtained from d3-geo. Trace how the geo mark exposes its expected type, then verify that consumers can import it directly from Plot without installing d3-geo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3js, typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100