Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Error with YooptaPlugin #429

Open
1 task done
SurajTechsmith opened this issue Dec 31, 2024 · 0 comments
Open
1 task done

Type Error with YooptaPlugin #429

SurajTechsmith opened this issue Dec 31, 2024 · 0 comments

Comments

@SurajTechsmith
Copy link

Has this bug been raised before?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Description

Error Message

Type '(YooptaPlugin<TableElementMap, Record<string, unknown>> | YooptaPlugin<DividerElementMap, Record<string, unknown>> | ... 12 more ... | YooptaPlugin<...>)[]' is not assignable to type 'readonly YooptaPlugin<Record<string, SlateElement>, Record<string, unknown>>[]'. Type 'YooptaPlugin<TableElementMap, Record<string, unknown>> | YooptaPlugin<DividerElementMap, Record<string, unknown>> | ... 12 more ... | YooptaPlugin<...>' is not assignable to type 'YooptaPlugin<Record<string, SlateElement>, Record<string, unknown>>'. Type 'YooptaPlugin<TableElementMap, Record<string, unknown>>' is not assignable to type 'YooptaPlugin<Record<string, SlateElement>, Record<string, unknown>>'. The types of 'getPlugin.elements' are incompatible between these types. Type '{ table: PluginElement<"table-data-cell" | "table-row", PluginElementProps<TableElementProps>>; 'table-data-cell': PluginElement<...>; 'table-row': PluginElement<...>; }' is not assignable to type '{ [x: string]: PluginElement<never, any>; }'. Property 'table' is incompatible with index signature. Type 'PluginElement<"table-data-cell" | "table-row", PluginElementProps<TableElementProps>>' is not assignable to type 'PluginElement<never, any>'. Type '"table-data-cell" | "table-row"' is not assignable to type 'never'. Type '"table-data-cell"' is not assignable to type 'never'.

The expected type comes from property 'plugins' which is declared here on type 'IntrinsicAttributes & YooptaEditorProps'

Screenshots

No response

Do you want to work on this issue?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant