@wordpress/media-utils
Version:
WordPress Media Upload Utils.
11 lines • 411 B
TypeScript
/**
* Internal dependencies
*/
import type { Attachment, RestAttachment } from './types';
/**
* Transforms an attachment object from the REST API shape into the shape expected by the block editor and other consumers.
*
* @param attachment REST API attachment object.
*/
export declare function transformAttachment(attachment: RestAttachment): Attachment;
//# sourceMappingURL=transform-attachment.d.ts.map