sunrise-cms/types/moduleTypes.d.ts

18 lines
626 B
TypeScript

declare module "font-awesome-v5-icons" {
type FontAwesomeV5Styles = "solid" | "regular" | "brands";
type FontAwesomeV5Keys = "name" | "changes" | "label" | "search" | "styles" | "unicode" | "voted";
interface FontAwesomeV5Icon {
name?: string;
changes?: string[];
label?: string;
search?: {
terms: string[];
};
styles?: FontAwesomeV5Styles[];
unicode?: string;
voted?: boolean;
}
function getList(): Promise<FontAwesomeV5Icon[]>;
function getListByKeys(arrayOfNeededKeys: FontAwesomeV5Keys[]): Promise<FontAwesomeV5Icon[]>;
}