TS2345: Argument of type { userId: unknown; } is not assignable to parameter of type MentionAttribute #14923
Labels
domain:ts
squad:core
Issue to be handled by the Core team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
I am using custom build of CKEditor 5 with Angular. Here is the function I use, almost the same as example provided in the documentation:
✔️ Expected result
What is the expected result of the above steps?
It should not show the error
Argument of type { userId: unknown; } is not assignable to parameter of type MentionAttribute Object literal may only specify known properties, and userId does not exist in type MentionAttribute
❌ Actual result
It shows
Argument of type { userId: unknown; } is not assignable to parameter of type MentionAttribute Object literal may only specify known properties, and userId does not exist in type MentionAttribute
❓ Possible solution
Example listed here says
// Add any other properties that you need.
But the typeMentionAttribute
is preventing that. MentionAttribute type should allow me to define the properties I need, like it says in the docs example.📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: