@wordpress/blocks
Version:
Block API for WordPress.
12 lines • 604 B
TypeScript
/**
* Convert legacy blocks to their canonical form. This function is used
* both in the parser level for previous content and to convert such blocks
* used in Custom Post Types templates.
*
* @param name The block's name
* @param attributes The block's attributes
*
* @return The block's name and attributes, changed accordingly if a match was found
*/
export declare function convertLegacyBlockNameAndAttributes(name: string | undefined | null, attributes: Record<string, unknown>): [string | undefined | null, Record<string, unknown>];
//# sourceMappingURL=convert-legacy-block.d.ts.map