observablehq / observablehq/plot

Export types expected by the geo mark

Open
#2,278 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.