UNPKG

@flexis/favicons

Version:

A tool for generating icons for the modern web.

17 lines 612 B
/// <reference types="node" /> import Vinyl from 'vinyl'; import { IRenderConfig } from './types'; /** * Attach image metadata to the vinyl file. * @param source - Image file. * @returns Source image file with attached metadata. */ export declare function attachMetadata(source: Vinyl): Promise<Vinyl>; /** * Render icon. * @param sources - Array of sources. * @param renderConfig - Render config. * @returns Rendered icon. */ export declare function renderIcon(sources: Vinyl[], { width, height, background, offset }: IRenderConfig): Promise<Buffer>; //# sourceMappingURL=image.d.ts.map