Initial commit: New MoreminiMore website with fresh design
This commit is contained in:
15
node_modules/astro/dist/assets/utils/node.d.ts
generated
vendored
Normal file
15
node_modules/astro/dist/assets/utils/node.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type * as vite from 'vite';
|
||||
import type { ImageMetadata } from '../types.js';
|
||||
export { hashTransform, propsToFilename } from './hash.js';
|
||||
type FileEmitter = vite.Rollup.EmitFile;
|
||||
type ImageMetadataWithContents = ImageMetadata & {
|
||||
contents?: Buffer;
|
||||
};
|
||||
/**
|
||||
* Processes an image file and emits its metadata and optionally its contents. This function supports both build and development modes.
|
||||
*
|
||||
* @param {string | undefined} id - The identifier or path of the image file to process. If undefined, the function returns immediately.
|
||||
* @param {FileEmitter | undefined} [fileEmitter] - Function for emitting files during the build process. May throw in certain scenarios.
|
||||
* @return {Promise<ImageMetadataWithContents | undefined>} Resolves to metadata with optional image contents or `undefined` if processing fails.
|
||||
*/
|
||||
export declare function emitImageMetadata(id: string | undefined, fileEmitter?: FileEmitter): Promise<ImageMetadataWithContents | undefined>;
|
||||
Reference in New Issue
Block a user