@wordpress/blocks
Version:
Block API for WordPress.
14 lines • 612 B
TypeScript
import type { Block, BlockType } from '../../types';
/**
* Attempts to fix block invalidation by applying build-in validation fixes
* like moving all extra classNames to the className attribute.
*
* @param block block object.
* @param blockType Block type. This is normalize not necessary and
* can be inferred from the block name,
* but it's here for performance reasons.
*
* @return Fixed block object
*/
export declare function applyBuiltInValidationFixes(block: Block, blockType: BlockType): Block;
//# sourceMappingURL=apply-built-in-validation-fixes.d.ts.map