Skip to content

Updated the BlockAttribute typedef to allow for multi-type attributes#78517

Merged
talldan merged 1 commit into
WordPress:trunkfrom
joshualip-plaudit:update/fix-block-attribute-type-type
May 22, 2026
Merged

Updated the BlockAttribute typedef to allow for multi-type attributes#78517
talldan merged 1 commit into
WordPress:trunkfrom
joshualip-plaudit:update/fix-block-attribute-type-type

Conversation

@joshualip-plaudit
Copy link
Copy Markdown
Contributor

What?

Closes #78516

Adds support for a list of types to be passed to BlockAttribute['type']

Why?

Block attributes support multiple types. This should be reflected in the typedef.

How?

I updated the typedef

Testing Instructions

Run a build? Idk. This is a strictly backwards-compatible addition to the typedef, so there isn't really anything to test

Use of AI Tools

I don't use AI tools

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: joshualip-plaudit <[email protected]>
Co-authored-by: talldan <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions github-actions Bot added the [Package] Blocks /packages/blocks label May 21, 2026
@talldan talldan added the [Type] Task Issues or PRs that have been broken down into an individual action to take label May 22, 2026
Copy link
Copy Markdown
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@talldan talldan added the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label May 22, 2026
@github-actions github-actions Bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label May 22, 2026
@talldan talldan merged commit fae6202 into WordPress:trunk May 22, 2026
49 checks passed
@github-actions github-actions Bot added this to the Gutenberg 23.3 milestone May 22, 2026
@arthur791004 arthur791004 added [Type] Code Quality Issues or PRs that relate to code quality [Package] Block editor /packages/block-editor and removed [Type] Task Issues or PRs that have been broken down into an individual action to take labels May 25, 2026
@joshualip-plaudit joshualip-plaudit deleted the update/fix-block-attribute-type-type branch June 2, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor [Package] Blocks /packages/blocks [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The BlockAttribute type does not allow for multi-type attributes

3 participants