Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
895 B
Plaintext
24 lines
895 B
Plaintext
/**
|
|
* Create the result object for the image resize operation based on the
|
|
* provided parameters. If the name is not provided, an empty result object
|
|
* is returned.
|
|
*
|
|
* @param filename - the filename of the image
|
|
* @param width - the width of the image
|
|
* @param height - the height of the image
|
|
* @param filesize - the filesize of the image
|
|
* @param mimeType - the mime type of the image
|
|
* @returns a FileSize result object
|
|
*/
|
|
import type { FileSize } from '../types.js';
|
|
type CreateResultArgs = {
|
|
filename?: FileSize['filename'];
|
|
filesize?: FileSize['filesize'];
|
|
height?: FileSize['height'];
|
|
mimeType?: FileSize['mimeType'];
|
|
url?: FileSize['url'];
|
|
width?: FileSize['width'];
|
|
};
|
|
export declare const createImageSize: ({ filename, filesize, height, mimeType, url, width, }: CreateResultArgs) => FileSize;
|
|
export {};
|
|
//# sourceMappingURL=createImageSize.d.ts.map |