From 343a3038bf25621cc1742116a92a088d85b9b987 Mon Sep 17 00:00:00 2001 From: Dan Johnson Date: Thu, 31 Jan 2019 16:28:05 -0600 Subject: [PATCH] Fix definitions for DOM interface DOM interfaces were off slightly from published API. Adjusted them so TS users can use accurately --- js-packages/@fortawesome/fontawesome-svg-core/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts b/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts index 0d8fd8b5b..b7d99b1b1 100644 --- a/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts +++ b/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts @@ -100,11 +100,15 @@ export interface IconParams extends Params { symbol?: FaSymbol; mask?: IconLookup; } +export interface WatchOptions { + autoReplaceSvgRoot: HTMLElement; + observeMutationsRoot: HTMLElement; +} export interface DOM { i2svg(params?: { node: Node; callback: () => void }): Promise; css(): string; - insertCss(): string; - watch(): void; + insertCss(css: string): void; + watch(params?: WatchOptions): void; } type IconDefinitionOrPack = IconDefinition | IconPack; export interface Library {