Files
talk-pro/node_modules/astro/dist/assets/utils/inferSourceFormat.d.ts

7 lines
273 B
TypeScript
Raw Normal View History

/**
* Infer the image format from a source path or URL by examining
* the file extension. For data: URIs, the MIME type is extracted.
* Returns undefined if the format cannot be determined.
*/
export declare function inferSourceFormat(src: string): string | undefined;