@diffusionstudio/core-v4
Version:
A fast, browser based video compositing engine powered by WebCodecs
7 lines (6 loc) • 321 B
TypeScript
/**
* Converts a MIME type to its corresponding file extension
* @param mimeType - The MIME type to convert (e.g., "image/jpeg" or "text/plain; charset=utf-8")
* @returns The file extension with leading dot (e.g., ".jpg") or null if not found
*/
export declare function mimeTypeToExtension(mimeType: string): string;