gatsby-plugin-utils
Version:
Gatsby utils that help creating plugins
17 lines (16 loc) • 470 B
TypeScript
export interface IResizeArgs {
width: number;
height: number;
format: string;
outputPath?: string;
quality: number;
}
export declare function transformImage({ outputDir, args: { url, filename, contentDigest, httpHeaders, ...args }, }: {
outputDir: string;
args: IResizeArgs & {
url: string;
filename: string;
contentDigest?: string;
httpHeaders: Record<string, string> | undefined;
};
}): Promise<string>;