diff --git a/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts b/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts index 04f99e03f..a64deeefd 100644 --- a/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts +++ b/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts @@ -106,11 +106,15 @@ export interface IconParams extends Params { mask?: IconLookup; maskId?: string; } +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 {