Since the last update of @wordpress/editor - v14.12.0, the TS types for some components and some actions are broken.
Step-by-step reproduction instructions
Import any component with @return set to {Component}
e.g.
import { PostTypeSupportCheck } from '@wordpress/editor';
import { PluginDocumentSettingPanel } from '@wordpress/edit-post';
Something here
See the TS error
![Image](https://github.com/user-attachments/assets/4dc4db16-a39f-4c94-98c3-bb9fcd7ffa00)
- Use `editPost` action
e.g.
```ts
import { dispatch } from '@wordpress/data';
import { store as editorStore } from '@wordpress/editor';
const { editPost } = dispatch( editorStore );
editPost( { title: 'Test' } );
See the error Expected 2 arguments, but got 1.ts(2554)
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
[x] Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
[x] Yes
Please confirm which theme type you used for testing.
Description
Since the last update of
@wordpress/editor
-v14.12.0
, the TS types for some components and some actions are broken.Step-by-step reproduction instructions
@return
set to{Component}
e.g.See the error
Expected 2 arguments, but got 1.ts(2554)
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.