Open ethereon opened 2 hours ago
I believe these two should be using Omit<DotOptions, "symbol"> rather than Exclude<DotOptions, "symbol">:
Omit<DotOptions, "symbol">
Exclude<DotOptions, "symbol">
https://github.com/observablehq/plot/blob/7d18179ef5c46db1dc0f463b9e4d0888766cc80d/src/marks/dot.d.ts#L141
https://github.com/observablehq/plot/blob/7d18179ef5c46db1dc0f463b9e4d0888766cc80d/src/marks/dot.d.ts#L144
(Exclude filters out members from unions, whereas Omit filters out properties)
Exclude
Omit
Thanks for the report. Agreed.
I believe these two should be using
Omit<DotOptions, "symbol">
rather thanExclude<DotOptions, "symbol">
:https://github.com/observablehq/plot/blob/7d18179ef5c46db1dc0f463b9e4d0888766cc80d/src/marks/dot.d.ts#L141
https://github.com/observablehq/plot/blob/7d18179ef5c46db1dc0f463b9e4d0888766cc80d/src/marks/dot.d.ts#L144
(
Exclude
filters out members from unions, whereasOmit
filters out properties)