-
Notifications
You must be signed in to change notification settings - Fork 12.2k
i2svg options should be optional #14512
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
base: master
Are you sure you want to change the base?
Conversation
In i2svg, when specifying the 'node' param, typescript then requires the 'callback' param. Both 'node' and 'param' should be optional.
@mlwilkerson could you please take a look here? |
Thanks @cooljeffro and @tagliala . This looks good to me and seems to bring the intended use of I'll pass it along for possible inclusion in a future release of |
@@ -101,7 +101,7 @@ export interface IconParams extends Params { | |||
mask?: IconLookup; | |||
} | |||
export interface DOM { | |||
i2svg(params?: { node: Node; callback: () => void }): Promise<void>; | |||
i2svg(params?: { node?: Node; callback?: () => void }): Promise<void>; | |||
css(): string; | |||
insertCss(): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``
@@ -101,7 +101,7 @@ export interface IconParams extends Params { | |||
mask?: IconLookup; | |||
} | |||
export interface DOM { | |||
i2svg(params?: { node: Node; callback: () => void }): Promise<void>; | |||
i2svg(params?: { node?: Node; callback?: () => void }): Promise<void>; | |||
css(): string; | |||
insertCss(): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``
In i2svg, when specifying the 'node' param, typescript then requires the 'callback' param. Both 'node' and 'callback' should be optional.
I understand that:
I understand that it will not be merged and I will not be listed as a contributor on this project.