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:
cooljeffro 2019-01-17 10:11:20 -08:00 committed by GitHub
parent fc377a13a3
commit 5df104422c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;