Release 5.0.7

This commit is contained in:
robmadole
2018-02-26 14:30:03 -06:00
parent a75113bfac
commit 7bef6853ca
716 changed files with 17136 additions and 3317 deletions

View File

@@ -10,7 +10,7 @@ export function findIconDefinition(iconLookup: IconLookup): IconDefinition;
export function text(content: string, params?: Params): Text;
export function layer(
assembler: (
addLayerCallback: (layerToAdd: IconLookup | IconLookup[]) => void
addLayerCallback: (layerToAdd: IconOrText | IconOrText[]) => void
) => void
): Layer;
export function icon(icon: IconName | IconLookup, params?: IconParams): Icon;
@@ -25,7 +25,7 @@ declare const api: {
text(content: string, params?: Params): Text;
layer(
assembler: (
addLayerCallback: (layerToAdd: IconLookup | IconLookup[]) => void
addLayerCallback: (layerToAdd: IconOrText | IconOrText[]) => void
) => void
): Layer;
icon(icon: IconName | IconLookup, params?: IconParams): Icon;
@@ -82,6 +82,7 @@ export interface Text extends FontawesomeObject {
export interface Layer extends FontawesomeObject {
readonly type: "layer";
}
type IconOrText = Icon | Text;
export interface Attributes {
[key: string]: number | string;
}
@@ -116,4 +117,4 @@ type IconDefinitionOrPack = IconDefinition | IconPack;
export interface Library {
add(...definitions: IconDefinitionOrPack[]): void;
reset(): void;
}
}