mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-25 13:01:29 +08:00
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:
parent
cd0029e8bf
commit
343a3038bf
@ -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<void>;
|
||||
css(): string;
|
||||
insertCss(): string;
|
||||
watch(): void;
|
||||
insertCss(css: string): void;
|
||||
watch(params?: WatchOptions): void;
|
||||
}
|
||||
type IconDefinitionOrPack = IconDefinition | IconPack;
|
||||
export interface Library {
|
||||
|
Loading…
Reference in New Issue
Block a user