mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-12 16:20:28 +08:00
i2svg options should be optional
In i2svg, when specifying the 'node' param, typescript then requires the 'callback' param. Both 'node' and 'param' should be optional.
This commit is contained in:
parent
fc377a13a3
commit
5df104422c
@ -101,7 +101,7 @@ export interface IconParams extends Params {
|
||||
mask?: IconLookup;
|
||||
}
|
||||
export interface DOM {
|
||||
i2svg(params?: { node: Node; callback: () => void }): void;
|
||||
i2svg(params?: { node?: Node; callback?: () => void }): void;
|
||||
css(): string;
|
||||
insertCss(): string;
|
||||
watch(): void;
|
||||
|
Loading…
Reference in New Issue
Block a user