UNPKG

react-static-plugin-favicons

Version:

Favicons plugin for React-Static

36 lines (35 loc) 1.04 kB
/// <reference types="react" /> import { Configuration as FaviconsConfiguration } from 'favicons'; interface Options { /** * The source image */ inputFile: string; /** * Directory where the image files will be written */ outputDir?: string; /** * Configuration for `favicons`, see https://www.npmjs.com/package/favicons#nodejs */ configuration?: FaviconsConfiguration; } interface HookOptions { meta: { faviconsElements?: JSX.Element[]; }; } interface ReactStaticConfig { paths: { ASSETS: string; }; } interface ReactStaticConfigData { config: ReactStaticConfig; } declare const _default: (options: Options) => { afterGetConfig: (configData: ReactStaticConfigData) => ReactStaticConfigData; beforeRenderToHtml: (element: JSX.Element, { meta }: HookOptions) => Promise<JSX.Element>; headElements: (elements: JSX.Element[], { meta }: HookOptions) => Promise<(JSX.Element | JSX.Element[] | undefined)[]>; } | undefined; export default _default;