UNPKG

@wordpress/upload-media

Version:
12 lines 729 B
/** * Browsers may use unexpected mime types, and they differ from browser to browser. * This function computes a flexible array of mime types from the mime type structured provided by the server. * Converts { jpg|jpeg|jpe: "image/jpeg" } into [ "image/jpeg", "image/jpg", "image/jpeg", "image/jpe" ] * * @param {?Object} wpMimeTypesObject Mime type object received from the server. * Extensions are keys separated by '|' and values are mime types associated with an extension. * * @return An array of mime types or null */ export declare function getMimeTypesArray(wpMimeTypesObject?: Record<string, string> | null): string[] | null; //# sourceMappingURL=get-mime-types-array.d.ts.map