Fix definitions for DOM interface

DOM interfaces were off slightly from published API.  Adjusted them so TS users can use accurately
This commit is contained in:
Dan Johnson 2019-01-31 16:28:05 -06:00 committed by GitHub
parent cd0029e8bf
commit 343a3038bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,11 +100,15 @@ export interface IconParams extends Params {
symbol?: FaSymbol; symbol?: FaSymbol;
mask?: IconLookup; mask?: IconLookup;
} }
export interface WatchOptions {
autoReplaceSvgRoot: HTMLElement;
observeMutationsRoot: HTMLElement;
}
export interface DOM { export interface DOM {
i2svg(params?: { node: Node; callback: () => void }): Promise<void>; i2svg(params?: { node: Node; callback: () => void }): Promise<void>;
css(): string; css(): string;
insertCss(): string; insertCss(css: string): void;
watch(): void; watch(params?: WatchOptions): void;
} }
type IconDefinitionOrPack = IconDefinition | IconPack; type IconDefinitionOrPack = IconDefinition | IconPack;
export interface Library { export interface Library {