[Types] Wrong recursion in Mark’s _tip_ option
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- data-visualization
Research direction
Trace the MarkOption.tip and TipOptions type definitions, starting from the type declarations used for mark options. Exclude tip from TipOptions so nested tip values are no longer accepted, then verify that the example no longer type-checks and that valid tip options remain supported.
Written by the indexing model from the issue text.
Description
MarkOption.tip is of type TipOptions. (This is a simplified statement, but true enough for this issue description).
TipOptions itself derives from MarkOptions.
This recursion lets us specify nested tips:
Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", tip: {tip: {tip: {tip: {tip: {tip: {}}}}}}}).plot()
TipOptions should probably exclude the tip property.
Related: #2423
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
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.
More from observablehq/plot
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
observablehq/plot#2453 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
observablehq/plot#2451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
observablehq/plot#2447 · 2 comments ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
observablehq/plot#1533 · 3 comments · 1 reaction ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
observablehq/plot#811 · 1 comment ·
All issues in observablehq/plot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OrgExplorer#245 · 1 assignee ·
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gordonwatts/test-wsl2-llm#151 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100