mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-13 00:30:29 +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;
|
mask?: IconLookup;
|
||||||
}
|
}
|
||||||
export interface DOM {
|
export interface DOM {
|
||||||
i2svg(params?: { node: Node; callback: () => void }): void;
|
i2svg(params?: { node?: Node; callback?: () => void }): void;
|
||||||
css(): string;
|
css(): string;
|
||||||
insertCss(): string;
|
insertCss(): string;
|
||||||
watch(): void;
|
watch(): void;
|
||||||
|
Loading…
Reference in New Issue
Block a user