From 5df104422c7f2489e52cc80e32fd37032bd56cb3 Mon Sep 17 00:00:00 2001 From: cooljeffro Date: Thu, 17 Jan 2019 10:11:20 -0800 Subject: [PATCH] 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. --- js-packages/@fortawesome/fontawesome-svg-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts b/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts index 93d909288..04d8f246f 100644 --- a/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts +++ b/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts @@ -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;