Closed genu closed 1 year ago
Is there a reason why we cannot use the CreatedEditorArgs type directly that is provided bylexical here?
CreatedEditorArgs
lexical
https://github.com/wobsoriano/lexical-vue/blob/8c19a0f5e7ec2f806f03f70322113efdb80cb3c4/src/components/LexicalComposer.vue#L9-L21
If we use the lexical provided type, we wouldn't have to recreate it in the composer as it is now as well as provide more straight forward type safety:
import { CreateEditorArgs } from 'lexical' const config: CreateEditorArgs = { ... }
Hey! I think CreateEditorArgs wasn't available at the time this component was written. Would you like to open a PR for that?
CreateEditorArgs
Fixed in https://github.com/wobsoriano/lexical-vue/pull/22
Is there a reason why we cannot use the
CreatedEditorArgs
type directly that is provided bylexical
here?https://github.com/wobsoriano/lexical-vue/blob/8c19a0f5e7ec2f806f03f70322113efdb80cb3c4/src/components/LexicalComposer.vue#L9-L21
If we use the lexical provided type, we wouldn't have to recreate it in the composer as it is now as well as provide more straight forward type safety: