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

fix typescript errors if typescript compiler option "exactOptionalPropertyTypes" is enabled #2071

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix typescript errors if typescript compiler option "exactOptionalPro…
…pertyTypes" is enabled
  • Loading branch information
montemishkin committed Jun 3, 2024
commit ea39314c4bb4518e351385baac70290c7c22fa85
2 changes: 1 addition & 1 deletion src/curve.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export interface CurveAutoOptions {
*
* [1]: https://d3js.org/d3-shape/curve#custom-curves
*/
curve?: Curve | "auto";
curve?: Curve | "auto" | undefined;

/**
* The tension option only has an effect on bundle, cardinal and Catmull–Rom
Expand Down
2 changes: 1 addition & 1 deletion src/mark.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export interface MarkOptions {
*
* [1]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/opacity
*/
opacity?: ChannelValueSpec;
opacity?: ChannelValueSpec | undefined;

/**
* The [mix-blend-mode][1]; a constant string specifying how to blend content
Expand Down