mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-25 21:11:30 +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;
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user