useTypedAttributeUpdater
useTypedAttributeUpdater<
T>(attributes,setAttributes,validate?):TypedAttributeUpdater<T>
Defined in: inspector-runtime-model.tsx:268
Create typed attribute update callbacks for manifest-driven editor UIs.
Type Parameters
Section titled “Type Parameters”T extends object
Parameters
Section titled “Parameters”attributes
Section titled “attributes”T
Current block attribute object.
setAttributes
Section titled “setAttributes”(attrs) => void
Callback that applies partial attribute updates.
validate?
Section titled “validate?”(value) => ValidationResult<T>
Optional validator used before committing updates.
Returns
Section titled “Returns”Typed helpers for key-based and path-based attribute updates.